refs #1; Fixed path to register.

This commit is contained in:
Jason Ward 2017-11-17 12:41:31 -05:00
parent a2b1233afd
commit 9261bd5cef

View file

@ -7,7 +7,7 @@ from authority.permissions import BasePermission
class FlatPagePermission(BasePermission):
"""
This class contains a bunch of checks:
1. the default checks 'add_flatpage', 'browse_flatpage',
'change_flatpage' and 'delete_flatpage'
2. the custom checks:
@ -49,4 +49,4 @@ class FlatPagePermission(BasePermission):
return False
top_secret.short_description=_('Is allowed to see top secret flatpages')
authority.register(FlatPage, FlatPagePermission)
authority.sites.register(FlatPage, FlatPagePermission)