diff --git a/backend/utils/admin.py b/backend/utils/admin.py index 01b2dc4..f4dc1be 100644 --- a/backend/utils/admin.py +++ b/backend/utils/admin.py @@ -1,5 +1,9 @@ from order.models import OrderModel - +from product.models import DollorModel def admin_pending_count(request): pending_count = OrderModel.objects.filter(status='ADMIN_PENDING').count() - return str(pending_count) \ No newline at end of file + return str(pending_count) + +def dollor_price(request): + dollor_object, _ = DollorModel.objects.get_or_create(unique_filed='unique') + return str(dollor_object.price)[:2]