Skip to content

Commit 553ab7e

Browse files
committed
Allow creating SEASONAL reservations in GQL create_staff_reservation
1 parent 7b361a6 commit 553ab7e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

api/graphql/types/reservation/serializers/staff_create_serializers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ def validate_type(self, reservation_type):
205205
ReservationTypeChoice.BLOCKED.value,
206206
ReservationTypeChoice.STAFF.value,
207207
ReservationTypeChoice.BEHALF.value,
208+
ReservationTypeChoice.SEASONAL.value,
208209
]
209210

210211
if reservation_type not in allowed_types:

tests/test_graphql_api/test_reservation/test_staff_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def test_reservation__staff_create__reservation_type_normal_not_accepted(graphql
441441
response = graphql(CREATE_STAFF_MUTATION, input_data=data)
442442

443443
assert response.error_message() == (
444-
"Reservation type NORMAL is not allowed in this mutation. Allowed choices are BLOCKED, STAFF, BEHALF."
444+
"Reservation type NORMAL is not allowed in this mutation. Allowed choices are BLOCKED, STAFF, BEHALF, SEASONAL."
445445
)
446446

447447

0 commit comments

Comments
 (0)