diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/migrations/0001_initial.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/migrations/0001_initial.py index 1036f22d..8327d289 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/migrations/0001_initial.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/migrations/0001_initial.py @@ -30,6 +30,7 @@ class Migration(migrations.Migration): ('date_joined', models.DateTimeField(verbose_name='date joined', default=django.utils.timezone.now)), ('groups', models.ManyToManyField(related_name='user_set', blank=True, verbose_name='groups', to='auth.Group', help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_query_name='user')), ('user_permissions', models.ManyToManyField(related_name='user_set', blank=True, verbose_name='user permissions', to='auth.Permission', help_text='Specific permissions for this user.', related_query_name='user')), + ('name', models.CharField(max_length=255, verbose_name='Name of User', blank=True)), ], options={ 'verbose_name': 'user', diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/models.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/models.py index 0278af86..bc729e10 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/models.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/models.py @@ -10,7 +10,7 @@ class User(AbstractUser): # First Name and Last Name do not cover name patterns # around the globe. - name = models.CharField("Name", blank=True, max_length=255) + name = models.CharField("Name of User", blank=True, max_length=255) def __unicode__(self): return self.username