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:
Feanil Patel
2020-04-06 13:41:28 -04:00
committed by GitHub

View File

@@ -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)