Commits

Jesse Heitler committed ffcb979

Indexing the lookup key.

  • Participants
  • Parent commits f8fdcb1

Comments (0)

Files changed (1)

visitor/models.py

 
 #==============================================================================
 class Visitor(models.Model):
-    visitor_key = models.CharField(max_length='50')
+    visitor_key = models.CharField(max_length='50', db_index=True)
     created = models.DateTimeField(default=datetime.now())
     last_update = models.DateTimeField()
     num_visits = models.SmallIntegerField(default=0)