forked from CGM_Public/pretix_original
Order import: Fix handling of seat IDs
This commit is contained in:
@@ -678,9 +678,12 @@ class SeatColumn(ImportColumn):
|
|||||||
if value:
|
if value:
|
||||||
try:
|
try:
|
||||||
value = Seat.objects.get(
|
value = Seat.objects.get(
|
||||||
|
event=self.event,
|
||||||
seat_guid=value,
|
seat_guid=value,
|
||||||
subevent=previous_values.get('subevent')
|
subevent=previous_values.get('subevent')
|
||||||
)
|
)
|
||||||
|
except Seat.MultipleObjectsReturned:
|
||||||
|
raise ValidationError(_('Multiple matching seats were found.'))
|
||||||
except Seat.DoesNotExist:
|
except Seat.DoesNotExist:
|
||||||
raise ValidationError(_('No matching seat was found.'))
|
raise ValidationError(_('No matching seat was found.'))
|
||||||
if not value.is_available() or value in self._cached:
|
if not value.is_available() or value in self._cached:
|
||||||
|
|||||||
Reference in New Issue
Block a user