summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAbhyudai <13880786+abhiabhi94@users.noreply.github.com>2021-07-23 09:49:02 +0530
committerGitHub <noreply@github.com>2021-07-23 06:19:02 +0200
commit019424e44efe495bc5981eb9848c0bb398a6f068 (patch)
tree10341eb1cc9cfeeebd6a1ba33be85c7f5f8ae4d9 /docs
parent1783b3cb24cdefd8e1e3d73acd1d1ef3011c96be (diff)
Fixed #32950 -- Removed myproject from imports in admin docs where appropriate.
Diffstat (limited to 'docs')
-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 1dc5ff0c30..13dd6c5350 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -86,7 +86,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
@@ -102,7 +102,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)
@@ -2723,7 +2723,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