Fixed "created" field on machine log (from Date to DateTime... my mistake :-) )

This commit is contained in:
Adolfo Gómez 2013-01-10 16:22:19 +00:00
parent 2af9e04343
commit 59b4f27ca7
3 changed files with 3 additions and 2 deletions

View File

@ -106,6 +106,7 @@ encoding//src/uds/migrations/0001_initial.py=utf-8
encoding//src/uds/migrations/0002_auto__del_unique_userpreference_name_module.py=utf-8
encoding//src/uds/migrations/0004_auto__add_field_deployedservice_state_date.py=utf-8
encoding//src/uds/migrations/0005_auto__add_field_config_crypt.py=utf-8
encoding//src/uds/migrations/0008_auto__add_userservicelog__add_field_userservice_src_hostname__add_fiel.py=utf-8
encoding//src/uds/models.py=utf-8
encoding//src/uds/osmanagers/LinuxOsManager/LinuxOsManager.py=utf-8
encoding//src/uds/osmanagers/LinuxOsManager/__init__.py=utf-8

View File

@ -12,7 +12,7 @@ class Migration(SchemaMigration):
db.create_table('uds__us_log', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user_service', self.gf('django.db.models.fields.related.ForeignKey')(related_name='log', to=orm['uds.UserService'])),
('created', self.gf('django.db.models.fields.DateField')(auto_now_add=True, db_index=True, blank=True)),
('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, db_index=True, blank=True)),
('source', self.gf('django.db.models.fields.CharField')(default='internal', max_length=16, db_index=True)),
('level', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=0, db_index=True)),
('data', self.gf('django.db.models.fields.CharField')(default='', max_length=255)),

View File

@ -1525,7 +1525,7 @@ class UserServiceLog(models.Model):
user_service = models.ForeignKey(UserService, on_delete=models.CASCADE, related_name = 'log')
created = models.DateField(auto_now_add=True, db_index=True)
created = models.DateTimeField(auto_now_add=True, db_index=True)
source = models.CharField(max_length=16, default='internal', db_index=True)
level = models.PositiveSmallIntegerField(default=0, db_index=True)
data = models.CharField(max_length=255, default='')