mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-10-31 07:57:42 +03:00 
			
		
		
		
	Merge pull request #2998 from Andrew-Chen-Wang/patch-6
This commit is contained in:
		
						commit
						aee2559d4f
					
				|  | @ -53,18 +53,6 @@ class Migration(migrations.Migration): | |||
|                         verbose_name="username", | ||||
|                     ), | ||||
|                 ), | ||||
|                 ( | ||||
|                     "first_name", | ||||
|                     models.CharField( | ||||
|                         blank=True, max_length=30, verbose_name="first name" | ||||
|                     ), | ||||
|                 ), | ||||
|                 ( | ||||
|                     "last_name", | ||||
|                     models.CharField( | ||||
|                         blank=True, max_length=150, verbose_name="last name" | ||||
|                     ), | ||||
|                 ), | ||||
|                 ( | ||||
|                     "email", | ||||
|                     models.EmailField( | ||||
|  |  | |||
|  | @ -9,6 +9,8 @@ class User(AbstractUser): | |||
| 
 | ||||
|     #: First and last name do not cover name patterns around the globe | ||||
|     name = CharField(_("Name of User"), blank=True, max_length=255) | ||||
|     first_name = None  # type: ignore | ||||
|     last_name = None  # type: ignore | ||||
| 
 | ||||
|     def get_absolute_url(self): | ||||
|         """Get url for user's detail view. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user