From 66d3693b907a07c0209f85e29b87a4a8811e6136 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 6 Nov 2011 21:23:58 +0100 Subject: [PATCH] add index to log --- pandora/log/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/log/models.py b/pandora/log/models.py index 14eb1528..61b176f1 100644 --- a/pandora/log/models.py +++ b/pandora/log/models.py @@ -9,7 +9,7 @@ import ox import managers class Log(models.Model): - created = models.DateTimeField(auto_now_add=True) + created = models.DateTimeField(auto_now_add=True, db_index=True) modified = models.DateTimeField(auto_now=True) user = models.ForeignKey(User, default=None, blank=True, null=True) url = models.CharField(max_length=1000, default='')