mirror of https://github.com/django/django.git
Fixed #18871 - Fixed typo in multi-db docs.
This commit is contained in:
parent
723c9a8c6d
commit
141e6cd2ac
|
@ -525,7 +525,7 @@ registered with any ``Admin`` instance::
|
||||||
admin.site.register(Author, MultiDBModelAdmin)
|
admin.site.register(Author, MultiDBModelAdmin)
|
||||||
admin.site.register(Publisher, PublisherAdmin)
|
admin.site.register(Publisher, PublisherAdmin)
|
||||||
|
|
||||||
othersite = admin.Site('othersite')
|
othersite = admin.AdminSite('othersite')
|
||||||
othersite.register(Publisher, MultiDBModelAdmin)
|
othersite.register(Publisher, MultiDBModelAdmin)
|
||||||
|
|
||||||
This example sets up two admin sites. On the first site, the
|
This example sets up two admin sites. On the first site, the
|
||||||
|
|
Loading…
Reference in New Issue