Ticket #2783: one_to_one_db_column.diff
File one_to_one_db_column.diff, 608 bytes (added by , 18 years ago) |
---|
-
django/core/management.py
150 150 if isinstance(f, models.ForeignKey): 151 151 rel_field = f.rel.get_related_field() 152 152 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) 153 156 else: 154 157 rel_field = f 155 158 data_type = f.get_internal_type()