Skip to content

Commit

Permalink
add word index
Browse files Browse the repository at this point in the history
  • Loading branch information
rloomans committed Sep 26, 2017
1 parent 3ac5f7c commit b64eb39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teamtemp/responses/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class TemperatureResponse(models.Model):
request = models.ForeignKey(TeamTemperature, related_name="temperature_responses")
responder = models.ForeignKey(User, related_name="temperature_responses")
score = models.PositiveSmallIntegerField(validators=[MinValueValidator(1), MaxValueValidator(10)])
word = models.CharField(max_length=32)
word = models.CharField(max_length=32, db_index=True)
team_name = models.CharField(max_length=64, db_index=True)
archived = models.BooleanField(default=False, db_index=True)
response_date = models.DateTimeField(db_index=True)
Expand Down Expand Up @@ -164,7 +164,7 @@ class Meta(object):
average_score = models.DecimalField(decimal_places=5, max_digits=10)
minimum_score = models.PositiveSmallIntegerField(validators=[MinValueValidator(1), MaxValueValidator(10)], null=True, blank=True)
maximum_score = models.PositiveSmallIntegerField(validators=[MinValueValidator(1), MaxValueValidator(10)], null=True, blank=True)
word_list = models.CharField(max_length=5000)
word_list = models.CharField(max_length=5000, db_index=True)
responder_count = models.PositiveSmallIntegerField()
team_name = models.CharField(max_length=64, null=True, db_index=True)
archive_date = models.DateTimeField(db_index=True)
Expand Down

0 comments on commit b64eb39

Please sign in to comment.