Add index for top10 stats

This commit is contained in:
Michal Čihař 2012-03-05 09:52:24 +01:00
parent 8ab2538f95
commit 3c6d62d76e

View File

@ -24,8 +24,8 @@ class Profile(models.Model):
verbose_name = _('Secondary languages'),
related_name = 'secondary_profile_set'
)
suggested = models.IntegerField(default = 0)
translated = models.IntegerField(default = 0)
suggested = models.IntegerField(default = 0, db_index = True)
translated = models.IntegerField(default = 0, db_index = True)
@receiver(user_logged_in)