Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Backend
Commits
9adb8365
Commit
9adb8365
authored
Jun 29, 2021
by
Glenda Emanuella Sutanto
Browse files
Change default all_carts_are_expired value to null
parent
92287a5b
Pipeline
#84162
passed with stages
in 19 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
authentication/serializers.py
View file @
9adb8365
...
...
@@ -26,7 +26,7 @@ class UserAuthSerializer(serializers.ModelSerializer):
result
[
'transaction_status'
]
=
None
result
[
'cart_id'
]
=
None
result
[
'all_carts_are_expired'
]
=
Fals
e
result
[
'all_carts_are_expired'
]
=
Non
e
if
instance
.
cart
.
exists
():
result
[
'transaction_status'
]
=
instance
.
cart
.
last
().
transaction_status
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment