Test links ACL against the view's resolved_object or fallback to test against the {{ object }} context variable. Solves GL issue #230.

This commit is contained in:
Roberto Rosario
2015-10-25 01:54:18 -04:00
parent 9bbd148497
commit ce07077f3e
4 changed files with 132 additions and 2 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
from __future__ import unicode_literals
from django import apps
from django.utils.translation import ugettext_lazy as _
from common.apps import MayanAppConfig
class NavigationApp(apps.AppConfig):
class NavigationApp(MayanAppConfig):
name = 'navigation'
test = True
verbose_name = _('Navigation')