web/formfields.py
changeset 5911 47216d37bb3d
parent 5908 91c61feb5bc8
child 5916 36206e846a27
equal deleted inserted replaced
5910:432c657ebfec 5911:47216d37bb3d
  1000     res = []
  1000     res = []
  1001     for entity in entity.unrelated(rtype, targettype, role, limit).entities():
  1001     for entity in entity.unrelated(rtype, targettype, role, limit).entities():
  1002         if entity.eid in done:
  1002         if entity.eid in done:
  1003             continue
  1003             continue
  1004         done.add(entity.eid)
  1004         done.add(entity.eid)
  1005         res.append((entity.view('combobox'), entity.eid))
  1005         res.append((entity.view('combobox'), unicode(entity.eid)))
  1006     return res
  1006     return res
  1007 
  1007 
  1008 
  1008 
  1009 class RelationField(Field):
  1009 class RelationField(Field):
  1010     """Use this field to edit a relation of an entity.
  1010     """Use this field to edit a relation of an entity.