def menu_date(app=None): if app == 'topic': from nnmware.apps.topic.models import Topic as Alldata query = Alldata.objects.all().order_by('-created_date') objects_years_dict = create_archive_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')
def menu_date(app=None): if app == 'topic': from nnmware.apps.topic.models import Topic as Alldata query = Alldata.objects.all().order_by('-created_date') objects_years_dict = create_archive_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')