Merge pull request #23633 from edx/feanil/bom-1455-preserve-last-name-limit
Limit the last_name field to 30 chars.
This commit is contained in:
@@ -320,6 +320,8 @@ class UserChangeForm(BaseUserChangeForm):
|
||||
Override the default UserChangeForm such that the password field
|
||||
does not contain a link to a 'change password' form.
|
||||
"""
|
||||
last_name = forms.CharField(max_length=30, required=False)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(UserChangeForm, self).__init__(*args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user