Fix linting

This commit is contained in:
Yohann D'ANELLO 2021-01-19 00:13:22 +01:00
parent 5a865efd18
commit 8515153be7
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@
import os
import requests
from django.contrib.auth.models import User
from django.core.management import BaseCommand
import requests
class Command(BaseCommand):

View File

@ -613,7 +613,7 @@ class PassageCreateView(VolunteerMixin, CreateView):
def get_form(self, form_class=None):
form = super().get_form(form_class)
form.instance.pool = self.pool
fSynthesisorm.fields["defender"].queryset = self.pool.participations.all()
form.fields["defender"].queryset = self.pool.participations.all()
form.fields["opponent"].queryset = self.pool.participations.all()
form.fields["reporter"].queryset = self.pool.participations.all()
return form