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:
committed by
Mariusz Felisiak
parent
475cffd1d6
commit
0a9aa02e6f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user