Flake8 complient

This commit is contained in:
Alexandre Iooss 2019-07-16 12:59:11 +02:00
parent fbe2e7f59a
commit 2313ebcdb4
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
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