Comment improved.

This commit is contained in:
Marcus Scholz 2020-12-25 11:14:54 +01:00
parent 0f5474c2d3
commit 67a6517716

View File

@ -42,7 +42,7 @@ class ExplorerUserChangeForm(UserChangeForm):
''' Hide password hint.''' ''' Hide password hint.'''
password = None password = None
''' Display username, but make it uneditable and not required. ''' ''' Display username, but display it non-editable and not required. '''
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.fields['username'].required = False self.fields['username'].required = False