Ticket #2783: one_to_one_db_column.diff

File one_to_one_db_column.diff, 608 bytes (added by Joel Heenan <joelh-django@…, 18 years ago)
  • django/core/management.py

     
    150150        if isinstance(f, models.ForeignKey):
    151151            rel_field = f.rel.get_related_field()
    152152            data_type = get_rel_data_type(rel_field)
     153        elif isinstance(f, models.OneToOneField):
     154            rel_field = f.rel.get_related_field()
     155            data_type = get_rel_data_type(rel_field)
    153156        else:
    154157            rel_field = f
    155158            data_type = f.get_internal_type()
Back to Top