Kaydet (Commit) d4115868 authored tarafından Kevin Marsh's avatar Kevin Marsh Kaydeden (comit) Tim Graham

[1.8.x] Removed unused import in example code in docs/topics/auth/default.txt

Backport of 10945ebe from master
üst b16f84f1
...@@ -246,7 +246,7 @@ example, you can create the ``can_publish`` permission for a ``BlogPost`` model ...@@ -246,7 +246,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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment