From 688dce33d58b5232c9c7c68323006744d4bff299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 7 Jun 2016 22:36:43 +0200 Subject: [PATCH] =?UTF-8?q?Espaces=20en=20trop=20avant=20les=20parenth?= =?UTF-8?q?=C3=A8ses.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Supprimés --- bda/models.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/bda/models.py b/bda/models.py index 89ca74ab..251e0e3e 100644 --- a/bda/models.py +++ b/bda/models.py @@ -20,23 +20,23 @@ class Tirage(models.Model): def __unicode__(self): return u"%s - %s" % (self.title, self.date_no_seconds()) -class Salle (models.Model): - name = models.CharField ("Nom", max_length = 300) - address = models.TextField ("Adresse") +class Salle(models.Model): + name = models.CharField("Nom", max_length = 300) + address = models.TextField("Adresse") def __unicode__ (self): return self.name -class Spectacle (models.Model): - title = models.CharField ("Titre", max_length=300) - date = models.DateTimeField ("Date & heure") +class Spectacle(models.Model): + title = models.CharField("Titre", max_length=300) + date = models.DateTimeField("Date & heure") location = models.ForeignKey(Salle) - description = models.TextField ("Description", blank=True) - slots_description = models.TextField ("Description des places", blank=True) + description = models.TextField("Description", blank=True) + slots_description = models.TextField("Description des places", blank=True) price = models.FloatField("Prix d'une place") - slots = models.IntegerField ("Places") - priority = models.IntegerField ("Priorité", default=1000) - tirage = models.ForeignKey (Tirage) + slots = models.IntegerField("Places") + priority = models.IntegerField("Priorité", default=1000) + tirage = models.ForeignKey(Tirage) class Meta: verbose_name = "Spectacle" @@ -62,7 +62,7 @@ PAYMENT_TYPES = ( ("autre",u"Autre"), ) -class Participant (models.Model): +class Participant(models.Model): user = models.ForeignKey(User) choices = models.ManyToManyField(Spectacle, through="ChoixSpectacle", @@ -84,7 +84,7 @@ DOUBLE_CHOICES = ( ("double", "2 places sinon rien"), ) -class ChoixSpectacle (models.Model): +class ChoixSpectacle(models.Model): participant = models.ForeignKey(Participant) spectacle = models.ForeignKey(Spectacle, related_name="participants") priority = models.PositiveIntegerField("Priorité") @@ -105,7 +105,7 @@ class ChoixSpectacle (models.Model): verbose_name = "voeu" verbose_name_plural = "voeux" -class Attribution (models.Model): +class Attribution(models.Model): participant = models.ForeignKey(Participant) spectacle = models.ForeignKey(Spectacle, related_name="attribues") given = models.BooleanField(u"Donnée", default=False)