feat: page login

This commit is contained in:
2025-01-14 11:02:56 -03:00
parent 5040744c8a
commit 3b006e7a63
16 changed files with 59 additions and 6 deletions

View File

@@ -3,6 +3,8 @@ from django.db.models import Sum
from django.db.models import Count, F
from django.http import JsonResponse, HttpResponse
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.models import User
from comandas.models import ProductComanda
@@ -10,7 +12,6 @@ from orders.models import Order
from payments.models import Payments
from gestaoRaul.decorators import group_required
@group_required(groupName='Gerente')
def home(request):
total_pagamentos = Payments.objects.aggregate(total=Sum('value'))['total']
@@ -25,6 +26,9 @@ def home(request):
@group_required(groupName='Gerente')
def chartCuisine(request):
print(request.user.id)
print(request.user.is_authenticated)
# fulano = User()
tFila = []
tPreparando = []
tFinalizado = []