Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
concrexit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
thalia
concrexit
Merge requests
!713
Fix changing the pizza order status using PATCH
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix changing the pizza order status using PATCH
fix/567-pizzas-order-status-change
into
master
Overview
0
Commits
1
Changes
1
Merged
Ghost User
requested to merge
fix/567-pizzas-order-status-change
into
master
6 years ago
Overview
0
Commits
1
Changes
1
Expand
Closes
#567 (closed)
Previous behaviour
Steps to reproduce:
Create a pizza event
Add orders
Change the order status in the pizza frontend admin
The user connected to the order changes to
you
, the logged-in user. And the paid status changes.
New behaviour
Steps to validate that it works:
Create a pizza event
Add orders
Change the order status in the pizza frontend admin
The user connected stays the same. The paid status changes.
Edited
6 years ago
by
Ghost User
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
8a7483a4
1 commit,
6 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
website/pizzas/api/serializers.py
+
1
−
1
Options
@@ -38,6 +38,6 @@ class AdminOrderSerializer(serializers.ModelSerializer):
'
member
'
:
_
(
'
Either specify a member or a name
'
),
'
name
'
:
_
(
'
Either specify a member or a name
'
),
})
if
not
(
attrs
.
get
(
'
member
'
)
or
attrs
.
get
(
'
name
'
)):
if
not
(
attrs
.
get
(
'
member
'
)
or
attrs
.
get
(
'
name
'
))
and
not
self
.
partial
:
attrs
[
'
member
'
]
=
self
.
context
[
'
request
'
].
member
return
super
().
validate
(
attrs
)
Loading