comment create and get view
This commit is contained in:
@@ -93,6 +93,8 @@ INSTALLED_APPS = [
|
||||
'rest_framework_simplejwt.token_blacklist',
|
||||
'rest_framework.authtoken',
|
||||
'djoser',
|
||||
# custom apps
|
||||
'product'
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -248,6 +250,55 @@ UNFOLD = {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
"SIDEBAR": {
|
||||
"show_search": True,
|
||||
"show_all_applications": False,
|
||||
"navigation": [
|
||||
{
|
||||
|
||||
"separator": False, # Top border
|
||||
"collapsible": False, # Collapsible group of links
|
||||
"items": [
|
||||
{
|
||||
"title": _("داشبرد ادمین"),
|
||||
"icon": "dashboard",
|
||||
"link": reverse_lazy("admin:index"),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
|
||||
{
|
||||
"title": _("پنل فروش محصولات وبسایت"),
|
||||
"separator": True,
|
||||
"collapsible": True,
|
||||
"items": [
|
||||
{
|
||||
"title": _("محصولات"),
|
||||
"icon": "redeem",
|
||||
"link": reverse_lazy("admin:product_product_changelist"),
|
||||
},
|
||||
|
||||
# esm category model ro lower case bezar inja amir
|
||||
|
||||
# {
|
||||
# "title": _("دسته بندی"),
|
||||
# "icon": "category",
|
||||
# "link": reverse_lazy("admin:product_ _changelist"),
|
||||
# },
|
||||
{
|
||||
"title": _("نظرات"),
|
||||
"icon": "chat",
|
||||
"link": reverse_lazy("admin:product_commentmodel_changelist"),
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user