mirror of
https://github.com/django/django.git
synced 2025-11-18 11:00:24 +00:00
Fixed #35241 -- Cached model's full parent list.
co-authored-by: Keryn Knight <keryn@kerynknight.com> co-authored-by: Natalia <124304+nessita@users.noreply.github.com> co-authored-by: David Smith <smithdc@gmail.com> co-authored-by: Paolo Melchiorre <paolo@melchiorre.org>
This commit is contained in:
parent
6e1ece7ed5
commit
73d5eb8084
10 changed files with 41 additions and 33 deletions
|
|
@ -504,7 +504,7 @@ class InlineAdminForm(AdminForm):
|
|||
# in parents.)
|
||||
any(
|
||||
parent._meta.auto_field or not parent._meta.model._meta.pk.editable
|
||||
for parent in self.form._meta.model._meta.get_parent_list()
|
||||
for parent in self.form._meta.model._meta.all_parents
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue