Comment improved.
This commit is contained in:
parent
0f5474c2d3
commit
67a6517716
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user