[Update] ops adhoc date_created index (#2223)

This commit is contained in:
jokimina
2018-12-20 10:34:42 +08:00
committed by 老广
parent db8882a2b9
commit 231c907c64
2 changed files with 19 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ class Task(models.Model):
is_deleted = models.BooleanField(default=False)
comment = models.TextField(blank=True, verbose_name=_("Comment"))
created_by = models.CharField(max_length=128, blank=True, default='')
date_created = models.DateTimeField(auto_now_add=True)
date_created = models.DateTimeField(auto_now_add=True, db_index=True)
__latest_adhoc = None
_ignore_auto_created_by = True