Пример #1
0
 def to_python(self, value):
     return util.unserialize_references(value) if value else {}
Пример #2
0
 def to_python(self, value):
     value = super(ReferencesField, self).to_python(value)
     return util.unserialize_references(value)