summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhyudai <13880786+abhiabhi94@users.noreply.github.com>2021-07-23 09:49:02 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-07-23 06:20:07 +0200
commitde5a044cf49ba3d856388fe008f1e1a82a69b699 (patch)
tree47da80f386f7085fe03cfab281193026149436b7
parentf4cf86f870ed8ab1be2844c0c8f0bbc608154289 (diff)
downloaddjango-de5a044cf49ba3d856388fe008f1e1a82a69b699.tar.gz
[3.2.x] Fixed #32950 -- Removed myproject from imports in admin docs where appropriate.
Backport of 019424e44efe495bc5981eb9848c0bb398a6f068 from main
-rw-r--r--docs/ref/contrib/admin/index.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 074529a64a..23b0456ef9 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -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