From 7cc22ffac520ac556cb561d9c9d7a7b6b6ca2a50 Mon Sep 17 00:00:00 2001 From: Xavier Fernandez Date: Fri, 6 Sep 2024 17:45:46 +0200 Subject: [PATCH] users: remove now useless template_name Django 5.0 is used without any issue or warning --- itou/users/admin_forms.py | 6 ------ 1 file changed, 6 deletions(-) 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,