profile end points user model otp stuff base
This commit is contained in:
@@ -94,7 +94,9 @@ INSTALLED_APPS = [
|
||||
'rest_framework.authtoken',
|
||||
'djoser',
|
||||
# custom apps
|
||||
'product'
|
||||
'product',
|
||||
'account',
|
||||
'entertainment',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -278,7 +280,7 @@ UNFOLD = {
|
||||
{
|
||||
"title": _("محصولات"),
|
||||
"icon": "redeem",
|
||||
"link": reverse_lazy("admin:product_product_changelist"),
|
||||
"link": reverse_lazy("admin:product_productmodel_changelist"),
|
||||
},
|
||||
|
||||
# esm category model ro lower case bezar inja amir
|
||||
@@ -296,12 +298,32 @@ UNFOLD = {
|
||||
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
"title": _("بخش کاربران و مشتریان"),
|
||||
"separator": True,
|
||||
"collapsible": True,
|
||||
"items": [
|
||||
|
||||
{
|
||||
"title": _("users"),
|
||||
"icon": "person",
|
||||
"link": reverse_lazy("admin:account_user_changelist"),
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
AUTH_USER_MODEL = 'account.User'
|
||||
def environment_callback(request):
|
||||
return ["Development", "warning"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user