admin pannel update

This commit is contained in:
Parsa Nazer
2025-02-01 21:51:56 +03:30
parent ae5d167894
commit 40cc21f241
3 changed files with 30 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
from order.models import OrderModel
def admin_pending_count(request):
pending_count = OrderModel.objects.filter(status='ADMIN_PENDING').count()
return str(pending_count)