assumons le pep8

This commit is contained in:
xapantu 2016-07-09 19:49:24 -07:00 committed by Basile Clement
parent aa95263fc9
commit 4c32ba6307
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ class TokenForm(forms.Form):
class SpectacleModelChoiceField(forms.ModelChoiceField):
def label_from_instance(self, obj):
return "%s le %s (%s) à %.02f" % (obj.title, obj.date_no_seconds(),
obj.location, obj.price)
obj.location, obj.price)
class ResellForm(forms.Form):

View file

@ -163,7 +163,7 @@ class ChoixSpectacle(models.Model):
verbose_name_plural = "voeux"
@python2_unicode_compatible
@python_2_unicode_compatible
class Attribution(models.Model):
participant = models.ForeignKey(Participant)
spectacle = models.ForeignKey(Spectacle, related_name="attribues")