Changes between Version 1 and Version 2 of Ticket #32466, comment 11
- Timestamp:
- Feb 22, 2021, 9:17:29 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32466, comment 11
v1 v2 29 29 development_1 | [22/Feb/2021 17:57:40] "GET /admin/autocomplete/?app_label=foo&model_name=bar&field_name=baz HTTP/1.1" 403 135 30 30 }}} 31 32 Probably, `to_field_name = getattr(source_field.remote_field, 'field_name', 'pk')` should be replaced with `to_field_name = getattr(source_field.remote_field, 'field_name', 'id')`. But it would be better to get the name of pk-field for the case of custom pk.