forked from DGNum/gestioCOF
scrap buying many resells
This commit is contained in:
parent
7f2717c10c
commit
f679338910
4 changed files with 17 additions and 29 deletions
|
@ -272,8 +272,7 @@ class SpectacleRevente(models.Model):
|
|||
spectacle = self.attribution.spectacle
|
||||
seller = self.seller
|
||||
if inscrits.exists():
|
||||
idx = random.randint(0, inscrits.count() - 1)
|
||||
winner = inscrits.all()[idx]
|
||||
winner = random.choice(inscrits.all())
|
||||
self.soldTo = winner
|
||||
mail_buyer = """Bonjour,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue