Ticket #3077: svn.diff
File svn.diff, 682 bytes (added by , 18 years ago) |
---|
-
django/core/management.py
150 150 if isinstance(f, (models.ForeignKey, models.OneToOneField)): 151 151 rel_field = f.rel.get_related_field() 152 152 data_type = get_rel_data_type(rel_field) 153 while isinstance(rel_field, (models.ForeignKey, models.OneToOneField)): 154 rel_field = rel_field.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()