mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24: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:
|
||||
q = Q(identifier=answer)
|
||||
if answer.isdigit():
|
||||
if isinstance(answer, int) or answer.isdigit():
|
||||
q |= Q(pk=answer)
|
||||
o = self.options.filter(q).first()
|
||||
if not o:
|
||||
|
||||
Reference in New Issue
Block a user