farhan0581 / django-admin-autocomplete-filter

A simple Django app to render list filters in django admin using autocomplete widget.
GNU General Public License v3.0
351 stars 76 forks source link

Default field_pk should be `pk` instead of `id` #12

Closed IvanAnishchuk closed 4 years ago

IvanAnishchuk commented 5 years ago

id is the django's default AutoField with sequential surrogate id. pk is an alias for whatever primary key actually is. Meaning the current default breaks when using a custom primary key while switching to pk would not break anything but should have better compatibility.