mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-15 18:53:25 +00:00
Change DateField to DateTimeField to improve indexing efficency
This commit is contained in:
parent
bdd29a4d65
commit
4edd535460
19
core/migrations/0017_auto_20161220_1626.py
Normal file
19
core/migrations/0017_auto_20161220_1626.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- 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,
|
||||
|
Loading…
Reference in New Issue
Block a user