mirror of
https://github.com/pretix/pretix.git
synced 2026-05-13 16:33:59 +00:00
Waiting list: Use a deterministic order
This commit is contained in:
@@ -80,7 +80,7 @@ def assign_automatically(event: Event, user_id: int=None, subevent_id: int=None)
|
|||||||
voucher__isnull=True
|
voucher__isnull=True
|
||||||
).select_related('item', 'variation', 'subevent').prefetch_related(
|
).select_related('item', 'variation', 'subevent').prefetch_related(
|
||||||
'item__quotas', 'variation__quotas'
|
'item__quotas', 'variation__quotas'
|
||||||
).order_by('-priority', 'created')
|
).order_by('-priority', 'created', 'pk')
|
||||||
|
|
||||||
if subevent_id and event.has_subevents:
|
if subevent_id and event.has_subevents:
|
||||||
subevent = event.subevents.get(id=subevent_id)
|
subevent = event.subevents.get(id=subevent_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user