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())
|
||||
spectacle = self.attribution.spectacle
|
||||
seller = self.seller
|
||||
winner = None
|
||||
|
||||
if inscrits:
|
||||
# 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
|
||||
else:
|
||||
winner = None
|
||||
self.shotgun = True
|
||||
self.tirage_done = True
|
||||
self.save()
|
||||
|
|
Loading…
Reference in a new issue