From: Guillaume Pellerin Date: Tue, 21 May 2013 15:23:36 +0000 (+0200) Subject: fix sandbox, perms X-Git-Tag: 1.4.5~16 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f87832dd04eb08a9bd304944b912faa13323c1a8;p=telemeta.git fix sandbox, perms --- diff --git a/example/sandbox/settings.py b/example/sandbox/settings.py index 75741ef0..0a380300 100644 --- a/example/sandbox/settings.py +++ b/example/sandbox/settings.py @@ -106,7 +106,7 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.locale.LocaleMiddleware', ) -ROOT_URLCONF = 'sandbox_sqlite.urls' +ROOT_URLCONF = 'sandbox.urls' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". diff --git a/telemeta/admin.py b/telemeta/admin.py index 2cb51c51..2ca31d18 100644 --- a/telemeta/admin.py +++ b/telemeta/admin.py @@ -111,3 +111,5 @@ admin.site.register(Revision, RevisionAdmin) admin.site.register(Format, FormatAdmin) admin.site.register(User, UserProfileAdmin) + +admin.site.register(PublisherCollection) \ No newline at end of file diff --git a/telemeta/models/system.py b/telemeta/models/system.py index db0795e9..d1b64d5f 100644 --- a/telemeta/models/system.py +++ b/telemeta/models/system.py @@ -92,7 +92,7 @@ class UserProfile(models.Model): class Meta(MetaCore): db_table = 'profiles' - permissions = (("cannot_view_users_and_profiles", "Cannot view other users and any profile"),) + permissions = (("can_not_view_users_and_profiles", "Cannot view other users and any profile"),) class Criteria(ModelCore):