Browse files

Favourites now respects a django settings `FAVOURITES_REDIRECT_IF_NO_…

…PERMISSION`, to define the redirect for a list permission failure.
  • Loading branch information...
1 parent ce315a8 commit 4757efe078d8cb752a79005cdbf50a99ce17743f @markfinger markfinger committed Jun 19, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 favourites/settings.py
View
5 favourites/settings.py
@@ -0,0 +1,5 @@
+from django.conf import settings
+
+settings = {
+ 'FAVOURITES_REDIRECT_IF_NO_PERMISSION': getattr(settings, 'FAVOURITES_REDIRECT_IF_NO_PERMISSION', None),
+}

0 comments on commit 4757efe

Please sign in to comment.