Commit 7840f68e authored by Michal Čihař's avatar Michal Čihař

Add missing index

parent 00043e3b
......@@ -711,7 +711,10 @@ class Dictionary(models.Model):
class Change(models.Model):
unit = models.ForeignKey(Unit)
user = models.ForeignKey(User)
timestamp = models.DateTimeField(auto_now_add = True)
timestamp = models.DateTimeField(auto_now_add = True, db_index = True)
class Meta:
ordering = ['timestamp']
def __unicode__(self):
return '%s on %s by %s' % (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment