mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Fix test (Caused by 31fdf8721b)
This commit is contained in:
@@ -1117,7 +1117,7 @@ class Question(LoggedModel):
|
|||||||
|
|
||||||
if self.type == Question.TYPE_CHOICE:
|
if self.type == Question.TYPE_CHOICE:
|
||||||
q = Q(identifier=answer)
|
q = Q(identifier=answer)
|
||||||
if answer.isdigit():
|
if isinstance(answer, int) or answer.isdigit():
|
||||||
q |= Q(pk=answer)
|
q |= Q(pk=answer)
|
||||||
o = self.options.filter(q).first()
|
o = self.options.filter(q).first()
|
||||||
if not o:
|
if not o:
|
||||||
|
|||||||
Reference in New Issue
Block a user