def menu_user(app=None): if app == 'users': allusers = get_user_model() query = allusers.objects.all().order_by('-date_joined') objects_years_dict = create_userdate_list(query) html = Element("ul") key_lst = objects_years_dict.keys() for key in key_lst: recurse_for_date(app, key, objects_years_dict[key], html) return tostring(html, 'utf-8')
def menu_user(app=None): if app == 'users': allusers = get_user_model() query = allusers.objects.all().order_by('-date_joined') objects_years_dict = create_userdate_list(query) html = Element("ul") key_lst = objects_years_dict.keys() for key in key_lst: recurse_for_date(app, key, objects_years_dict[key], html) return tostring(html, 'unicode')