mirror of
https://github.com/django/django.git
synced 2025-08-30 15:27:40 +00:00
Fixed #20836 -- Ensure that the ForeignKey's to_field attribute is properly considered by the admin's interface when creating related objects.
Many thanks to Collin Anderson for the report and patch and to Peter Sheats for the test.
This commit is contained in:
parent
4e784f337c
commit
55a11683f7
11 changed files with 89 additions and 14 deletions
|
@ -43,3 +43,5 @@ site.register(models.Bee)
|
|||
site.register(models.Advisor)
|
||||
|
||||
site.register(models.School, SchoolAdmin)
|
||||
|
||||
site.register(models.Profile)
|
Loading…
Add table
Add a link
Reference in a new issue