From 8515153be7be0d869226d34e704bbbacd8cab39a Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 19 Jan 2021 00:13:22 +0100 Subject: [PATCH] Fix linting --- apps/participation/management/commands/check_hello_asso.py | 2 +- apps/participation/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/participation/management/commands/check_hello_asso.py b/apps/participation/management/commands/check_hello_asso.py index a9d1bdc..748b2bb 100644 --- a/apps/participation/management/commands/check_hello_asso.py +++ b/apps/participation/management/commands/check_hello_asso.py @@ -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): diff --git a/apps/participation/views.py b/apps/participation/views.py index 1b41dc2..5b3da16 100644 --- a/apps/participation/views.py +++ b/apps/participation/views.py @@ -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