forked from DGNum/gestioCOF
Espaces en trop avant les parenthèses.
Supprimés
This commit is contained in:
parent
68e3c3412a
commit
688dce33d5
1 changed files with 14 additions and 14 deletions
|
@ -20,23 +20,23 @@ class Tirage(models.Model):
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return u"%s - %s" % (self.title, self.date_no_seconds())
|
return u"%s - %s" % (self.title, self.date_no_seconds())
|
||||||
|
|
||||||
class Salle (models.Model):
|
class Salle(models.Model):
|
||||||
name = models.CharField ("Nom", max_length = 300)
|
name = models.CharField("Nom", max_length = 300)
|
||||||
address = models.TextField ("Adresse")
|
address = models.TextField("Adresse")
|
||||||
|
|
||||||
def __unicode__ (self):
|
def __unicode__ (self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
class Spectacle (models.Model):
|
class Spectacle(models.Model):
|
||||||
title = models.CharField ("Titre", max_length=300)
|
title = models.CharField("Titre", max_length=300)
|
||||||
date = models.DateTimeField ("Date & heure")
|
date = models.DateTimeField("Date & heure")
|
||||||
location = models.ForeignKey(Salle)
|
location = models.ForeignKey(Salle)
|
||||||
description = models.TextField ("Description", blank=True)
|
description = models.TextField("Description", blank=True)
|
||||||
slots_description = models.TextField ("Description des places", blank=True)
|
slots_description = models.TextField("Description des places", blank=True)
|
||||||
price = models.FloatField("Prix d'une place")
|
price = models.FloatField("Prix d'une place")
|
||||||
slots = models.IntegerField ("Places")
|
slots = models.IntegerField("Places")
|
||||||
priority = models.IntegerField ("Priorité", default=1000)
|
priority = models.IntegerField("Priorité", default=1000)
|
||||||
tirage = models.ForeignKey (Tirage)
|
tirage = models.ForeignKey(Tirage)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = "Spectacle"
|
verbose_name = "Spectacle"
|
||||||
|
@ -62,7 +62,7 @@ PAYMENT_TYPES = (
|
||||||
("autre",u"Autre"),
|
("autre",u"Autre"),
|
||||||
)
|
)
|
||||||
|
|
||||||
class Participant (models.Model):
|
class Participant(models.Model):
|
||||||
user = models.ForeignKey(User)
|
user = models.ForeignKey(User)
|
||||||
choices = models.ManyToManyField(Spectacle,
|
choices = models.ManyToManyField(Spectacle,
|
||||||
through="ChoixSpectacle",
|
through="ChoixSpectacle",
|
||||||
|
@ -84,7 +84,7 @@ DOUBLE_CHOICES = (
|
||||||
("double", "2 places sinon rien"),
|
("double", "2 places sinon rien"),
|
||||||
)
|
)
|
||||||
|
|
||||||
class ChoixSpectacle (models.Model):
|
class ChoixSpectacle(models.Model):
|
||||||
participant = models.ForeignKey(Participant)
|
participant = models.ForeignKey(Participant)
|
||||||
spectacle = models.ForeignKey(Spectacle, related_name="participants")
|
spectacle = models.ForeignKey(Spectacle, related_name="participants")
|
||||||
priority = models.PositiveIntegerField("Priorité")
|
priority = models.PositiveIntegerField("Priorité")
|
||||||
|
@ -105,7 +105,7 @@ class ChoixSpectacle (models.Model):
|
||||||
verbose_name = "voeu"
|
verbose_name = "voeu"
|
||||||
verbose_name_plural = "voeux"
|
verbose_name_plural = "voeux"
|
||||||
|
|
||||||
class Attribution (models.Model):
|
class Attribution(models.Model):
|
||||||
participant = models.ForeignKey(Participant)
|
participant = models.ForeignKey(Participant)
|
||||||
spectacle = models.ForeignKey(Spectacle, related_name="attribues")
|
spectacle = models.ForeignKey(Spectacle, related_name="attribues")
|
||||||
given = models.BooleanField(u"Donnée", default=False)
|
given = models.BooleanField(u"Donnée", default=False)
|
||||||
|
|
Loading…
Reference in a new issue