forked from DGNum/gestioCOF
revente de revente + confirmation de transfert de places
This commit is contained in:
parent
0b40ebb6f7
commit
3bc9880db1
4 changed files with 80 additions and 13 deletions
|
@ -52,8 +52,8 @@ class ResellForm(forms.Form):
|
|||
def __init__(self, participant, *args, **kwargs):
|
||||
super(ResellForm, self).__init__(*args, **kwargs)
|
||||
self.fields['attributions'].queryset = participant.attribution_set\
|
||||
.filter(spectacle__date__gte=timezone.now(),
|
||||
revente__isnull=True)
|
||||
.filter(spectacle__date__gte=timezone.now())\
|
||||
.exclude(revente__seller=participant)
|
||||
|
||||
|
||||
class AnnulForm(forms.Form):
|
||||
|
@ -67,7 +67,8 @@ class AnnulForm(forms.Form):
|
|||
self.fields['attributions'].queryset = participant.attribution_set\
|
||||
.filter(spectacle__date__gte=timezone.now(),
|
||||
revente__isnull=False,
|
||||
revente__date__gte=timezone.now()-timedelta(hours=1))
|
||||
revente__date__gte=timezone.now()-timedelta(hours=1),
|
||||
revente__seller=participant)
|
||||
|
||||
|
||||
class InscriptionReventeForm(forms.Form):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue