categorylanri import qilish qoshildi
This commit is contained in:
62
config/conf/navigation.py
Normal file
62
config/conf/navigation.py
Normal file
@@ -0,0 +1,62 @@
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
PAGES = [
|
||||
{
|
||||
"seperator": False,
|
||||
"items": [
|
||||
{
|
||||
"title": _("Bosh sahifa"),
|
||||
"icon": "home",
|
||||
"link": reverse_lazy("admin:index"),
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"title": _("Do'kon boshqaruvi"),
|
||||
"separator": True,
|
||||
"items": [
|
||||
{
|
||||
"title": _("Filiallar"),
|
||||
"icon": "store",
|
||||
"link": reverse_lazy("admin:api_filialmodel_changelist"),
|
||||
},
|
||||
{
|
||||
"title": _("Kategoriyalar"),
|
||||
"icon": "category",
|
||||
"link": reverse_lazy("admin:api_categorymodel_changelist"),
|
||||
},
|
||||
{
|
||||
"title": _("Subkategoriyalar"),
|
||||
"icon": "layers",
|
||||
"link": reverse_lazy("admin:api_subcategorymodel_changelist"),
|
||||
},
|
||||
{
|
||||
"title": _("Mahsulotlar"),
|
||||
"icon": "shopping_basket",
|
||||
"link": reverse_lazy("admin:api_productsmodel_changelist"),
|
||||
},
|
||||
{
|
||||
"title": _("Mahsulot variantlari"),
|
||||
"icon": "inventory_2",
|
||||
"link": reverse_lazy("admin:api_subproductmodel_changelist"),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
"title": _("Foydalanuvchilar"),
|
||||
"separator": True,
|
||||
"items": [
|
||||
{
|
||||
"title": _("Foydalanuvchilar"),
|
||||
"icon": "person",
|
||||
"link": reverse_lazy("admin:accounts_user_changelist"),
|
||||
},
|
||||
{
|
||||
"title": _("Guruhlar"),
|
||||
"icon": "group",
|
||||
"link": reverse_lazy("admin:auth_group_changelist"),
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user