mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
QuestionAnswer: Add UNIQUE keys on (orderposition, question) and (cartposition, question) (#1994)
This commit is contained in:
committed by
GitHub
parent
4a2ac110b3
commit
46cee890f0
@@ -983,6 +983,9 @@ class QuestionAnswer(models.Model):
|
||||
|
||||
objects = ScopedManager(organizer='question__event__organizer')
|
||||
|
||||
class Meta:
|
||||
unique_together = [['orderposition', 'question'], ['cartposition', 'question']]
|
||||
|
||||
@property
|
||||
def backend_file_url(self):
|
||||
if self.file:
|
||||
|
||||
Reference in New Issue
Block a user