assumons le pep8
This commit is contained in:
parent
aa95263fc9
commit
4c32ba6307
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ class TokenForm(forms.Form):
|
||||||
class SpectacleModelChoiceField(forms.ModelChoiceField):
|
class SpectacleModelChoiceField(forms.ModelChoiceField):
|
||||||
def label_from_instance(self, obj):
|
def label_from_instance(self, obj):
|
||||||
return "%s le %s (%s) à %.02f€" % (obj.title, obj.date_no_seconds(),
|
return "%s le %s (%s) à %.02f€" % (obj.title, obj.date_no_seconds(),
|
||||||
obj.location, obj.price)
|
obj.location, obj.price)
|
||||||
|
|
||||||
|
|
||||||
class ResellForm(forms.Form):
|
class ResellForm(forms.Form):
|
||||||
|
|
|
@ -163,7 +163,7 @@ class ChoixSpectacle(models.Model):
|
||||||
verbose_name_plural = "voeux"
|
verbose_name_plural = "voeux"
|
||||||
|
|
||||||
|
|
||||||
@python2_unicode_compatible
|
@python_2_unicode_compatible
|
||||||
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")
|
||||||
|
|
Loading…
Reference in a new issue