diff --git a/bda/models.py b/bda/models.py index 59827621..45c7db2a 100644 --- a/bda/models.py +++ b/bda/models.py @@ -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() diff --git a/bda/templates/bda/revente/manage.html b/bda/templates/bda/revente/manage.html index 0912babb..8162d55d 100644 --- a/bda/templates/bda/revente/manage.html +++ b/bda/templates/bda/revente/manage.html @@ -3,50 +3,84 @@ {% block realcontent %} -
Plus de reventes possibles !
diff --git a/bda/templates/bda/revente/subscribe.html b/bda/templates/bda/revente/subscribe.html index fcf57345..9a193908 100644 --- a/bda/templates/bda/revente/subscribe.html +++ b/bda/templates/bda/revente/subscribe.html @@ -4,28 +4,41 @@ {% block realcontent %}