diff --git a/bda/forms.py b/bda/forms.py index 9c73ff5f..60efa029 100644 --- a/bda/forms.py +++ b/bda/forms.py @@ -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): diff --git a/bda/models.py b/bda/models.py index c0eafc1a..8e353762 100644 --- a/bda/models.py +++ b/bda/models.py @@ -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")