Skip to content

Instantly share code, notes, and snippets.

Aishwary Dhare aishwarydhare

  • Zuka Technologies Pvt. Ltd.
  • Mumbai, India
Block or report user

Report or block aishwarydhare

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@aishwarydhare
aishwarydhare / django_nav_menu_maker.py
Last active Mar 4, 2019
Creating a MenuList : Django Admin App
View django_nav_menu_maker.py
from collections import OrderedDict
from django.urls import resolve
from django.urls import reverse
def get_menu(context):
# [ 'display name', 'level 1 parent (optional)', 'django url', 'css icon', 'level 2 parent (optional)']
menus = [
['solo', '', 'solo_url', 'fa fa-desktop'],
['test', '', '', 'fa fa-desktop'],
You can’t perform that action at this time.