forked from DGNum/gestioCOF
Coding style: python's scope sucks
This commit is contained in:
parent
f18959c0a1
commit
91bdf11852
1 changed files with 1 additions and 1 deletions
|
@ -361,6 +361,7 @@ class SpectacleRevente(models.Model):
|
||||||
inscrits = list(self.confirmed_entry.all())
|
inscrits = list(self.confirmed_entry.all())
|
||||||
spectacle = self.attribution.spectacle
|
spectacle = self.attribution.spectacle
|
||||||
seller = self.seller
|
seller = self.seller
|
||||||
|
winner = None
|
||||||
|
|
||||||
if inscrits:
|
if inscrits:
|
||||||
# Envoie un mail au gagnant et au vendeur
|
# Envoie un mail au gagnant et au vendeur
|
||||||
|
@ -400,7 +401,6 @@ class SpectacleRevente(models.Model):
|
||||||
|
|
||||||
# Si personne ne veut de la place, elle part au shotgun
|
# Si personne ne veut de la place, elle part au shotgun
|
||||||
else:
|
else:
|
||||||
winner = None
|
|
||||||
self.shotgun = True
|
self.shotgun = True
|
||||||
self.tirage_done = True
|
self.tirage_done = True
|
||||||
self.save()
|
self.save()
|
||||||
|
|
Loading…
Reference in a new issue