Loading docs/topics/auth/default.txt +1 −1 Original line number Diff line number Diff line Loading @@ -244,7 +244,7 @@ example, you can create the ``can_publish`` permission for a ``BlogPost`` model in ``myapp``:: 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 content_type = ContentType.objects.get_for_model(BlogPost) Loading Loading
docs/topics/auth/default.txt +1 −1 Original line number Diff line number Diff line Loading @@ -244,7 +244,7 @@ example, you can create the ``can_publish`` permission for a ``BlogPost`` model in ``myapp``:: 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 content_type = ContentType.objects.get_for_model(BlogPost) Loading