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