Ticket #1281: 1281_patch.diff
File 1281_patch.diff, 773 bytes (added by , 19 years ago) |
---|
-
c:/python24/lib/site-packages/django-0.91-py2.4.egg/django/core/meta/__init__.py
460 460 for f in to_search: 461 461 if f.name == name: 462 462 return f 463 if (hasattr(self, 'one_to_one_field') and 464 self.one_to_one_field is not None and 465 self.one_to_one_field.name == name): 466 return self.one_to_one_field 463 467 raise FieldDoesNotExist, "name=%s" % name 464 468 465 469 def get_order_sql(self, table_prefix=''):