Commit 4edd5354 authored by Skia's avatar Skia

Change DateField to DateTimeField to improve indexing efficency

parent bdd29a4d
Pipeline #560 passed with stage
in 2 minutes and 25 seconds
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0016_auto_20161212_1922'),
]
operations = [
migrations.AlterField(
model_name='user',
name='last_update',
field=models.DateTimeField(verbose_name='last update', auto_now=True),
),
]
......@@ -106,7 +106,7 @@ class User(AbstractBaseUser):
),
)
date_joined = models.DateField(_('date joined'), auto_now_add=True)
last_update = models.DateField(_('last update'), auto_now=True)
last_update = models.DateTimeField(_('last update'), auto_now=True)
is_superuser = models.BooleanField(
_('superuser'),
default=False,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment