View permissions in Django [duplicate]

Adding ‘view’ permission to default permissions list Your solution works, but you should really avoid editing source code if possible. There’s a few ways to accomplish this within the framework: 1. Add the permission during post_syncdb(): In a file under your_app/management/ from django.db.models.signals import post_syncdb from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import Permission def add_view_permissions(sender, … Read more