fix pep8 + move template

This commit is contained in:
Ludovic Stephan 2017-02-21 19:49:29 -03:00
parent d96f4ead87
commit 42a93027d3
3 changed files with 7 additions and 5 deletions

View file

@ -91,7 +91,9 @@ class SoldForm(forms.Form):
def __init__(self, participant, *args, **kwargs):
super(SoldForm, self).__init__(*args, **kwargs)
self.fields['attributions'].queryset = participant.attribution_set\
.filter(revente__isnull=False,
revente__soldTo__isnull=False)\
.exclude(revente__soldTo=participant)
self.fields['attributions'].queryset = (
participant.attribution_set
.filter(revente__isnull=False,
revente__soldTo__isnull=False)
.exclude(revente__soldTo=participant)
)