mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 00:53:08 +00:00 
			
		
		
		
	Change DateField to DateTimeField to improve indexing efficency
This commit is contained in:
		
							
								
								
									
										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) |     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( |     is_superuser = models.BooleanField( | ||||||
|         _('superuser'), |         _('superuser'), | ||||||
|         default=False, |         default=False, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user