1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #33077 -- Fixed links to related models for admin's readonly fields in custom admin site.

This commit is contained in:
Ken Whitesell
2021-09-13 21:10:38 -04:00
committed by Mariusz Felisiak
parent 475cffd1d6
commit 0a9aa02e6f
4 changed files with 19 additions and 6 deletions

View File

@@ -1142,6 +1142,8 @@ site2.register(
raw_id_fields=['parent'],
)
site2.register(Person, save_as_continue=False)
site2.register(ReadOnlyRelatedField, ReadOnlyRelatedFieldAdmin)
site2.register(Language)
site7 = admin.AdminSite(name="admin7")
site7.register(Article, ArticleAdmin2)