models: Set UserProfile.MIN_NAME_LENGTH to two.

Chinese names are often two characters.
This commit is contained in:
Rishi Gupta 2017-12-03 23:13:19 -08:00 committed by Greg Price
parent ebc7c72d99
commit b7779667fc
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
USERNAME_FIELD = 'email'
MAX_NAME_LENGTH = 100
MIN_NAME_LENGTH = 3
MIN_NAME_LENGTH = 2
API_KEY_LENGTH = 32
NAME_INVALID_CHARS = ['*', '`', '>', '"', '@']