small changes

This commit is contained in:
javad committed 2024-02-07 10:40:45 +03:30
1 parent e983e0cc43
commit f7dbd02a6c
36 files changed
+704 -16

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ from apps.shop.models import Cart as CartModel
def list_cart(cuser_role_uuid: str, workspace_uuid: str) -> CartModel:
return CartModel.objects.filter(sys_ws__uuid=workspace_uuid, cuser_role__uuid=cuser_role_uuid)
return CartModel.objects.filter(sys_ws__uuid=workspace_uuid, cuser_role__uuid=cuser_role_uuid).order_by('-created_at')
def clean_cart(cuser_role_uuid: str, workspace_uuid: str) -> CartModel: