1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-07 07:19:49 +02:00

Flake8 complient

This commit is contained in:
Alexandre Iooss
2019-07-16 12:59:11 +02:00
parent fbe2e7f59a
commit 2313ebcdb4
6 changed files with 26 additions and 13 deletions

View File

@@ -10,6 +10,7 @@ class CustomUserChangeForm(UserChangeForm):
Make first name, last name and email required
in the default Django Auth User model
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['first_name'].required = True