Fix User initial migration

This commit is contained in:
Daniel Greenfeld 2015-07-15 12:40:04 -07:00
parent 88188812a1
commit d412946f93
2 changed files with 2 additions and 1 deletions

View File

@ -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',

View File

@ -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