Commits

Anonymous committed 9c21f72

probbaly not an ideal way to fix this, but allows the migrations to work. later migrations could fix the correctness of the fields

Comments (0)

Files changed (2)

fitlog/migrations/0002_timechange.py

 
 from south.db import db
 from django.db import models
+import time
 from fitlog.models import *
 
 class Migration:
         db.rename_column('fitlog_cardiofitlogdetail','total_time','total_time_orig')
         
         # Changing field 'FitLog.total_time'
-        db.add_column('fitlog_fitlog', 'total_time', models.TimeField())
+        db.add_column('fitlog_fitlog', 'total_time', models.TimeField(blank=True, null=True))
         
         # Changing field 'CardioFitLogDetail.total_time'
-        db.add_column('fitlog_cardiofitlogdetail', 'total_time', models.TimeField())
+        db.add_column('fitlog_cardiofitlogdetail', 'total_time', models.TimeField(blank=True, null=True))
         
     
     
     create_date = models.DateTimeField(auto_now_add=True)
     last_update = models.DateTimeField(auto_now=True)
     log_date = models.DateField()
-    total_time = models.TimeField()
+    total_time = models.TimeField(blank=True, null=True)
     title = models.CharField(max_length=255)
     comments = models.TextField(max_length=5000,blank=True)
     
         abstract = True
     
 class CardioFitLogDetail(FitLogDetail):
-    total_time = models.TimeField()
+    total_time = models.TimeField(blank=True, null=True)
     distance = models.DecimalField(max_digits=5,decimal_places=1)
  
 #TODO PERFORMANCE : Make this better..