From 367fddbdab5b9f5df2c456808256722350595b02 Mon Sep 17 00:00:00 2001 From: Skia Date: Thu, 28 Jan 2016 09:36:24 +0100 Subject: [PATCH] Alter date_of_birth --- core/migrations/0004_auto_20160128_0835.py | 19 +++++++++++++++++++ core/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 core/migrations/0004_auto_20160128_0835.py diff --git a/core/migrations/0004_auto_20160128_0835.py b/core/migrations/0004_auto_20160128_0835.py new file mode 100644 index 00000000..3e3559ba --- /dev/null +++ b/core/migrations/0004_auto_20160128_0835.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0003_auto_20160111_0900'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='date_of_birth', + field=models.DateField(verbose_name='date of birth'), + ), + ] diff --git a/core/models.py b/core/models.py index ba42b201..23748054 100644 --- a/core/models.py +++ b/core/models.py @@ -45,7 +45,7 @@ class User(AbstractBaseUser, PermissionsMixin): first_name = models.CharField(_('first name'), max_length=30) last_name = models.CharField(_('last name'), max_length=30) email = models.EmailField(_('email address'), unique=True) - date_of_birth = models.DateTimeField(_('date of birth')) + date_of_birth = models.DateField(_('date of birth')) nick_name = models.CharField(max_length=30, blank=True) is_staff = models.BooleanField( _('staff status'),