Example #1
0
def get_menu(request):
    current_url = request.path.replace(reverse('admin:index'), "").lower()
    c = Context({
        "apps": load_apps(request),
        "custom": False,
    })
    t = get_template('admin/side_menu.html')
    return t.render(c)
Example #2
0
 def get_menu(self, request):
     current_url = request.path.replace(reverse('admin:index'), "").lower()
     c = Context({"apps": load_apps(request)})
     t = get_template('plugins/app_menu.html')
     return t.render(c)
Example #3
0
def get_menu(request):
    current_url = request.path.replace(reverse('admin:index'), "").lower()
    c = Context({"apps": load_apps(request), "custom": False, })
    t = get_template('admin/side_menu.html')
    return t.render(c)
Example #4
0
 def get_menu(self, request):
     current_url = request.path.replace(reverse('admin:index'), "").lower()
     c = Context({"apps": load_apps(request)})
     t = get_template('plugins/app_menu.html')
     return t.render(c)