mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-25 00:34:18 +03:00
Fix User initial migration
This commit is contained in:
parent
88188812a1
commit
d412946f93
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user