demiroren-teknoloji / django-admin-autocomplete-list-filter

Ajax autocomplete list filter for Django admin
MIT License
83 stars 31 forks source link

Fix query param name for custom related pk name #9

Open salomvary opened 3 years ago

salomvary commented 3 years ago

If the related model's primary key is not named id, use the right primary key name when constructing the query param name.

I've also sneaked in two loosely related changes, feel free to cherry-pick them:

salomvary commented 1 year ago

Oops, seems like I've created this pull request from the main branch of my fork, which contains all kinds of unrelated changes. Let me know if there is interest in fixing the original "custom related pk name" problem and I will clean up this pr.

vigo commented 4 months ago

as i promised, here is the current one: https://github.com/vigo/django-admin-list-filter