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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user