first commit

This commit is contained in:
NORBOYEVSAMARIDDIN
2026-02-07 11:18:38 +05:00
commit 493cb58222
228 changed files with 10859 additions and 0 deletions

View 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})