Changes between Version 1 and Version 2 of Ticket #26524, comment 3
- Timestamp:
- Apr 21, 2016, 1:27:54 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26524, comment 3
v1 v2 1 I don't think this is specific to admin. @cristianocca and @tim, this behavior is documented in the following method - `django.db.models.options:Options._forward_fields_map` - https://github.com/django/django/blob/master/django/db/models/options.py#L469 whichspecifically talks about the *_id fields as well.1 @cristianocca and @tim, the `has_related_field_in_list_display` method of `ChangeList` class in `django.contrib.admin.views.main` makes use of the `django.db.models.options:Options._forward_fields_map` which treats the _id attribute in a similar way and the same has been documented there - https://github.com/django/django/blob/master/django/db/models/options.py#L469 it specifically talks about the *_id fields as well.