From 6163e02b26e7c307701719df12559967175ea53b Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 12 Jun 2009 01:22:43 +0200 Subject: [PATCH] A short description for the example FlatPagePermission --- example/exampleapp/permissions.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/example/exampleapp/permissions.py b/example/exampleapp/permissions.py index 8f0fa25..3cd8dfb 100644 --- a/example/exampleapp/permissions.py +++ b/example/exampleapp/permissions.py @@ -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',)