summaryrefslogtreecommitdiff
path: root/docs/topics/auth/default.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/auth/default.txt')
-rw-r--r--docs/topics/auth/default.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 2bfefe5c25..8ba82fbec4 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -250,9 +250,11 @@ in ``myapp``::
from django.contrib.contenttypes.models import ContentType
content_type = ContentType.objects.get_for_model(BlogPost)
- permission = Permission.objects.create(codename='can_publish',
- name='Can Publish Posts',
- content_type=content_type)
+ permission = Permission.objects.create(
+ codename='can_publish',
+ name='Can Publish Posts',
+ content_type=content_type,
+ )
The permission can then be assigned to a
:class:`~django.contrib.auth.models.User` via its ``user_permissions``