From 9261bd5cef377073382e2f39c0fc188aee39c62b Mon Sep 17 00:00:00 2001 From: Jason Ward Date: Fri, 17 Nov 2017 12:41:31 -0500 Subject: [PATCH] refs #1; Fixed path to register. --- example/exampleapp/permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/exampleapp/permissions.py b/example/exampleapp/permissions.py index 72263a1..14e9dcb 100644 --- a/example/exampleapp/permissions.py +++ b/example/exampleapp/permissions.py @@ -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)