Further SQL optimizations

This commit is contained in:
Raphael Michel
2016-11-08 16:58:48 +01:00
parent 4c80ec17bf
commit 37598ed914
8 changed files with 65 additions and 23 deletions

View File

@@ -70,10 +70,11 @@ class Voucher(LoggedModel):
)
redeemed = models.BooleanField(
verbose_name=_("Redeemed"),
default=False
default=False,
db_index=True
)
valid_until = models.DateTimeField(
blank=True, null=True,
blank=True, null=True, db_index=True,
verbose_name=_("Valid until")
)
block_quota = models.BooleanField(