Changeset 56 for plesonet_admin/trunk/templatetags/plesonet_admin_tags.py
- Timestamp:
- 07/07/09 14:14:23 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plesonet_admin/trunk/templatetags/plesonet_admin_tags.py
r43 r56 2 2 from django import template 3 3 from django.utils.translation import ugettext_lazy as _ 4 from plesonet_admin.admin_settings import *5 4 from django.conf import settings 6 5 … … 23 22 #build new list 24 23 groups = [] 25 for g in ADMIN_GROUPS:24 for g in settings.ADMIN_GROUPS: 26 25 gmod = [] 27 26 for m in g['models']: … … 64 63 def render(self, context): 65 64 try: 66 context['custom_actions'] = ACTIONS 65 context['custom_actions'] = settings.ADMIN_ACTIONS 66 for ca in context['custom_actions']: 67 if callable(ca['url']): 68 ca['url'] = ca['url']() 67 69 except NameError: 68 70 context['custom_actions'] = []

