Ticket #701: patch.diff
File patch.diff, 623 bytes (added by , 19 years ago) |
---|
-
django/contrib/admin/views/doc.py
290 290 # ForeignKey is a special case. Use the field type of the relation. 291 291 if field.__class__.__name__ == 'ForeignKey': 292 292 field = field.rel.get_related_field() 293 return DATA_TYPE_MAPPING[field. __class__.__name__] % field.__dict__293 return DATA_TYPE_MAPPING[field.get_internal_type()] % field.__dict__ 294 294 295 295 def extract_views_from_urlpatterns(urlpatterns, base=''): 296 296 """