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

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 = ['*', '`', '>', '"', '@']