mirror of
https://github.com/jazzband/django-authority.git
synced 2026-05-08 15:44:45 +00:00
A short description for the example FlatPagePermission
This commit is contained in:
parent
ff0150398c
commit
6163e02b26
1 changed files with 7 additions and 1 deletions
|
|
@ -3,7 +3,13 @@ from django.utils.translation import ugettext_lazy as _
|
|||
|
||||
from authority import permissions
|
||||
|
||||
class FlatPagePermissionSet(permissions.BasePermission):
|
||||
class FlatPagePermission(permissions.BasePermission):
|
||||
"""
|
||||
This class contains a bunch of default and one custom permission check.
|
||||
You can use the default checks can_add, can_browse, can_change and
|
||||
can_delete to assemble your own. They can later be checked against from
|
||||
your views directly or templates with the ifhasperm template tag.
|
||||
"""
|
||||
model = FlatPage
|
||||
label = 'flatpage_permission'
|
||||
checks = ('top_secret',)
|
||||
|
|
|
|||
Loading…
Reference in a new issue