mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
feat: page login
This commit is contained in:
Binary file not shown.
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user