diff --git a/itou/users/admin_forms.py b/itou/users/admin_forms.py index bafa3236d0..d3aefb451f 100644 --- a/itou/users/admin_forms.py +++ b/itou/users/admin_forms.py @@ -92,9 +92,6 @@ def __init__(self, admin_site, attrs=None, using=None): class SelectTargetUserForm(forms.Form): - # Needed to avoid RemovedInDjango50Warning - template_name = forms.Form.template_name_div - to_user = forms.ModelChoiceField( User.objects.filter(kind=UserKind.JOB_SEEKER), required=True, label="Choisissez l'utilisateur cible" ) @@ -112,9 +109,6 @@ def clean_to_user(self): class ChooseFieldsToTransfer(forms.Form): - # Needed to avoid RemovedInDjango50Warning - template_name = forms.Form.template_name_div - fields_to_transfer = forms.MultipleChoiceField( choices=[], required=True,