Commits

Konstantin Mochalov committed e2a4368

Workaround for mysql Text index

Comments (0)

Files changed (2)

 
 class Task(models.Model):
     description = models.TextField()
-    date_start = models.DateTimeField()
+    date_start = models.DateTimeField(db_index=True)
 
     def to_api(self):
         return {

tasks/sql/task.mysql.sql

+ALTER TABLE `tasks_task` ADD INDEX `index_description` (`description`(64));