Skip to content

Commit

Permalink
[4.0.x] Unified AdminSite imports in docs.
Browse files Browse the repository at this point in the history
Backport of ce69e34 from main
  • Loading branch information
hramezani authored and felixxm committed May 25, 2022
1 parent fe2e147 commit 73b4f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/contrib/admin/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3117,11 +3117,11 @@ to reference your :class:`AdminSite` subclass.
.. code-block:: python
:caption: myapp/admin.py

from django.contrib.admin import AdminSite
from django.contrib import admin

from .models import MyModel

class MyAdminSite(AdminSite):
class MyAdminSite(admin.AdminSite):
site_header = 'Monty Python administration'

admin_site = MyAdminSite(name='myadmin')
Expand Down

0 comments on commit 73b4f3f

Please sign in to comment.