forked from DGNum/gestioCOF
fix pep8 + move template
This commit is contained in:
parent
d96f4ead87
commit
42a93027d3
3 changed files with 7 additions and 5 deletions
10
bda/forms.py
10
bda/forms.py
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue