1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #35020 -- Fixed ModelAdmin.lookup_allowed() for non-autofield primary keys.

Thanks Joshua Goodwin for the report.

Regression in 45ecd9acca.
This commit is contained in:
Sarah Boyce
2023-12-06 19:03:41 +01:00
committed by Mariusz Felisiak
parent 00ef74376e
commit f80669d2f5
3 changed files with 28 additions and 12 deletions

View File

@@ -9,4 +9,6 @@ Django 5.0.1 fixes several bugs in 5.0.
Bugfixes
========
* ...
* Reallowed, following a regression in Django 5.0, using a foreign key to a
model with a primary key that is not ``AutoField`` in
:attr:`.ModelAdmin.list_filter` (:ticket:`35020`).