Espaces en trop avant les parenthèses.

Supprimés
This commit is contained in:
Martin Pépin 2016-06-07 22:36:43 +02:00
parent 68e3c3412a
commit 688dce33d5

View file

@ -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)