Changes between Version 1 and Version 2 of Ticket #32466, comment 11


Ignore:
Timestamp:
Feb 22, 2021, 9:17:29 AM (4 years ago)
Author:
Dlis

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32466, comment 11

    v1 v2  
    2929development_1  | [22/Feb/2021 17:57:40] "GET /admin/autocomplete/?app_label=foo&model_name=bar&field_name=baz HTTP/1.1" 403 135
    3030}}}
     31
     32Probably, `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.
Back to Top