mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 12:53:11 +00:00
need_membership is useless if an article provides a membership
This commit is contained in:
parent
bc62fc7e20
commit
b702e27446
1 changed files with 4 additions and 2 deletions
|
@ -61,6 +61,8 @@ class MembershipForm(forms.Form):
|
||||||
|
|
||||||
article = forms.ModelChoiceField(
|
article = forms.ModelChoiceField(
|
||||||
Article.objects.filter(Q(duration_connection__gt=0) | Q(duration_days_connection__gt=0),
|
Article.objects.filter(Q(duration_connection__gt=0) | Q(duration_days_connection__gt=0),
|
||||||
available_for_everyone=True,
|
Q(need_membership=False)
|
||||||
need_membership=False),
|
| Q(duration_membership__gt=0)
|
||||||
|
| Q(duration_days_membership__gt=0),
|
||||||
|
available_for_everyone=True),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue