Ticket #8651: core_seralizers_python_patch.diff
File core_seralizers_python_patch.diff, 543 bytes (added by , 16 years ago) |
---|
-
python.py
84 84 85 85 # Handle FK fields 86 86 elif field.rel and isinstance(field.rel, models.ManyToOneRel): 87 if field_value :87 if field_value is not None: 88 88 data[field.attname] = field.rel.to._meta.get_field(field.rel.field_name).to_python(field_value) 89 89 else: 90 90 data[field.attname] = None