#NEWLINE# @ login_required ( ) #NEWLINE# def list_groups( request ) : #NEWLINE# #INDENT# if group_lists . user . is_superuser : #NEWLINE# #INDENT# group_lists = UserGroup . objects . filter ( id__gt = defines . ZORNA_GROUP_REGISTERED ) . order_by ( 'lft' ) #NEWLINE# return object_list ( request , queryset = group_lists , template_name = 'account/groups_list.html' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return HttpResponseRedirect ( '/' )