mirror of
https://github.com/django/django.git
synced 2025-03-26 17:20:49 +00:00
Removed unused import in example code in docs/topics/auth/default.txt
This commit is contained in:
parent
ff8a02ae0b
commit
10945ebeb8
@ -244,7 +244,7 @@ example, you can create the ``can_publish`` permission for a ``BlogPost`` model
|
|||||||
in ``myapp``::
|
in ``myapp``::
|
||||||
|
|
||||||
from myapp.models import BlogPost
|
from myapp.models import BlogPost
|
||||||
from django.contrib.auth.models import Group, Permission
|
from django.contrib.auth.models import Permission
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
|
|
||||||
content_type = ContentType.objects.get_for_model(BlogPost)
|
content_type = ContentType.objects.get_for_model(BlogPost)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user