Revision 0f4fa26d snf-astakos-app/astakos/im/context_processors.py

b/snf-astakos-app/astakos/im/context_processors.py
36 36
        GLOBAL_MESSAGES, PROFILE_EXTRA_LINKS
37 37
from astakos.im.api import get_menu
38 38
from astakos.im.util import get_query
39
from astakos.im.models import GroupKind
39 40

  
40 41
from django.conf import settings
41 42
from django.core.urlresolvers import reverse
......
79 80
        for item in menu_items:
80 81
            item['is_active'] = absolute(request.path) == item['url']
81 82
        return {'menu':menu_items}
83

  
84
def group_kinds(request):
85
    return {'group_kinds': GroupKind.objects.exclude(name='default').values_list('name', flat=True)}

Also available in: Unified diff