From ce69e34bd646558bb44ea92cecfd98b345a0b3e0 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Wed, 25 May 2022 13:13:28 +0200 Subject: [PATCH] Unified AdminSite imports in docs. --- docs/ref/contrib/admin/index.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 74af773dec..686769118a 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2979,11 +2979,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')