Ticket #8651: core_seralizers_python_patch.diff

File core_seralizers_python_patch.diff, 543 bytes (added by chesnutd, 7 years ago)

deserializer patch

  • python.py

     
    8484
    8585            # Handle FK fields
    8686            elif field.rel and isinstance(field.rel, models.ManyToOneRel):
    87                 if field_value:
     87                if field_value is not None:
    8888                    data[field.attname] = field.rel.to._meta.get_field(field.rel.field_name).to_python(field_value)
    8989                else:
    9090                    data[field.attname] = None
Back to Top