Ticket #17080: Deserializer.patch
File Deserializer.patch, 847 bytes (added by , 13 years ago) |
---|
-
django/core/serializers/python.py
122 122 data[field.attname] = field.rel.to._meta.get_field(field.rel.field_name).to_python(field_value) 123 123 else: 124 124 data[field.attname] = None 125 126 # any custom field type where attname is different to name (and is not 127 # caught already by checks above) needs instantiating by attname due to 128 # the way Model.__init__ is written currently 129 elif field.name != field.attname: 130 data[field.attname] = field.to_python(field_value) 125 131 126 132 # Handle all other fields 127 133 else: