Fakultas Ilmu Komputer UI

Commit 1646ea88 authored by inez nabila's avatar inez nabila
Browse files

fixing

parent 21fa9386
......@@ -263,7 +263,7 @@ class CartCompleteTransaction(rest_framework_views.APIView):
transaction = shortcuts.get_object_or_404(
models.Transaction,
id=serializer.validated_data['transaction'],
user=user
user=request.user
)
if transaction.transaction_status != '004':
raise rest_framework_exceptions.PermissionDenied(_(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment