[3.2.x] Fixed #32950 -- Removed myproject from imports in admin docs where appropriate.

Backport of 019424e44e from main
This commit is contained in:
Abhyudai 2021-07-23 09:49:02 +05:30 committed by Mariusz Felisiak
parent f4cf86f870
commit de5a044cf4
1 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ Other topics
application. Let's take a look at an example of the ``ModelAdmin``::
from django.contrib import admin
from myproject.myapp.models import Author
from myapp.models import Author
class AuthorAdmin(admin.ModelAdmin):
pass
@ -108,7 +108,7 @@ Other topics
preceding example could be simplified to::
from django.contrib import admin
from myproject.myapp.models import Author
from myapp.models import Author
admin.site.register(Author)
@ -2714,7 +2714,7 @@ any other inline. In your ``admin.py`` for this example app::
from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline
from myproject.myapp.models import Image, Product
from myapp.models import Image, Product
class ImageInline(GenericTabularInline):
model = Image