From 4c32ba6307371b8a08d80b96e3b2ca800c7e1ad1 Mon Sep 17 00:00:00 2001 From: xapantu Date: Sat, 9 Jul 2016 19:49:24 -0700 Subject: [PATCH] assumons le pep8 --- bda/forms.py | 2 +- bda/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")