first commit
This commit is contained in:
11
core/apps/management/views/businessman_dashboard.py
Normal file
11
core/apps/management/views/businessman_dashboard.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.shortcuts import render, redirect
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from core.apps.management.models import Device, Income, Expense, Warehouse, ToyMovement
|
||||
from core.apps.accounts.models import User
|
||||
from core.apps.management.decorators import role_required
|
||||
from ..translations import FIELD_TRANSLATIONS_UZ
|
||||
|
||||
@login_required
|
||||
@role_required(["businessman"])
|
||||
def businessman_dashboard(request):
|
||||
return render(request, "businessman/businessman_dashboard.html", {"role": request.user.role})
|
||||
Reference in New Issue
Block a user