Front-end notification model

Context processor to count notifications for display in base template
Logging handler to generate notifications for users with permission
This commit is contained in:
Adarnof
2016-02-13 05:25:57 +00:00
parent a75391f270
commit 1d99ef69d1
10 changed files with 83 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ def bootstrap_permissions():
Permission.objects.get_or_create(codename="signature_view", content_type=ct, name="signature_view")
Permission.objects.get_or_create(codename="optimer_management", content_type=ct, name="optimer_management")
Permission.objects.get_or_create(codename="optimer_view", content_type=ct, name="optimer_view")
Permission.objects.get_or_create(codename="logging_notifications", content_type=ct, name="logging_notifications")
Group.objects.get_or_create(name=settings.DEFAULT_AUTH_GROUP)
Group.objects.get_or_create(name=settings.DEFAULT_BLUE_GROUP)
logger.info("Bootstrapped permissions for auth and created default groups.")