Added new app 'project_setup' to display a setup dashboard style view instead of a secondary action list
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from project_setup.api import register_setup
|
||||
|
||||
def is_superuser(context):
|
||||
return context['request'].user.is_staff or context['request'].user.is_superuser
|
||||
|
||||
check_settings = {'text': _(u'settings'), 'view': 'setting_list', 'famfam': 'cog', 'icon': 'cog.png', 'condition': is_superuser}
|
||||
|
||||
register_setup(check_settings)
|
||||
|
||||
Reference in New Issue
Block a user