зеркало из https://github.com/mozilla/bedrock.git
Shift wagtail menus to regular `MenuItem`s
This commit is contained in:
Родитель
89b8c8a1f1
Коммит
a37e6466d3
|
@ -5,12 +5,12 @@
|
|||
from django.urls import reverse
|
||||
|
||||
from wagtail import hooks
|
||||
from wagtail.admin.menu import AdminOnlyMenuItem
|
||||
from wagtail.admin.menu import MenuItem
|
||||
|
||||
|
||||
@hooks.register("register_admin_menu_item")
|
||||
def register_task_queue_link():
|
||||
return AdminOnlyMenuItem(
|
||||
return MenuItem(
|
||||
"Task Queue",
|
||||
reverse("rq_home"),
|
||||
icon_name="tasks",
|
||||
|
@ -20,7 +20,7 @@ def register_task_queue_link():
|
|||
|
||||
@hooks.register("register_admin_menu_item")
|
||||
def register_django_admin_link():
|
||||
return AdminOnlyMenuItem(
|
||||
return MenuItem(
|
||||
"Django Admin",
|
||||
reverse("admin:index"),
|
||||
icon_name="tasks",
|
||||
|
|
Загрузка…
Ссылка в новой задаче