code: def get(self, instance, aslist=False, **kwargs):
          
          refs = self.get_versioned_references_for(instance)
  
          if not self.multiValued:
              if len(refs) > 1:
                  logger.warning("Found {} references for non-multivalued "
                                 "reference field '{}' of {}".format(
                                     len(refs), self.getName(), repr(instance)))
              if not aslist:
                  if refs:
                      refs = refs[0]
                  else:
                      refs = None
  
          if not self.referencesSortable or not hasattr(
                  aq_base(instance), "at_ordered_refs"):
              return refs
  
          refs = instance.at_ordered_refs
          order = refs[self.relationship]
          if order is None:
              return refs
  
          by_uid = dict(map(lambda ob: (api.get_uid(ob), ob), refs))
          return [by_uid[uid] for uid in order if uid in by_uid]
docs: Get (multi-)references