Verified Commit c7aec60d authored by vanille's avatar vanille
Browse files

fix linting errors

parent 578b2d3e
Pipeline #9326 passed with stages
in 3 minutes and 25 seconds
......@@ -27,4 +27,5 @@ pip install -r requirements.txt
# Exécuter les tests
tox -e py39-django2
tox -e linters
```
......@@ -68,7 +68,7 @@ class PurchaseView(LoginRequiredMixin, CreateView):
super().__init__(*args, **kwargs)
allowed = Q(payer_type='all') | Q(payer_type=payer_type)
if member_privilege:
allowed |= Q(payer_type='mem') # valid membership unlocks member-restricted products
allowed |= Q(payer_type='mem') # valid membership unlocks member-restricted products
self.fields['product'].queryset = Product.objects.filter(allowed)
return modelformset_factory(Entry, RestrictedEntryForm, extra=0, min_num=1, validate_min=True)
......
......@@ -7,7 +7,8 @@ from django.utils.http import urlsafe_base64_encode
from django.utils.translation import gettext_lazy as _
from polymorphic.models import PolymorphicModel
from django.urls import reverse_lazy
from datetime import datetime, timedelta
from datetime import datetime
from member.tokens import email_validation_token
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment