Skip to content

Commit

Permalink
users: remove now useless template_name
Browse files Browse the repository at this point in the history
Django 5.0 is used without any issue or warning
  • Loading branch information
xavfernandez committed Sep 9, 2024
1 parent 51f7380 commit 7678977
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions itou/users/admin_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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,
Expand Down

0 comments on commit 7678977

Please sign in to comment.