Very basic quota control

This commit is contained in:
Raphael Michel
2014-10-25 11:16:53 +02:00
parent da24aa3f6e
commit 4d2deca1bb
9 changed files with 233 additions and 2 deletions

View File

@@ -750,6 +750,12 @@ class Quota(models.Model):
implementation specific and are considered private. It is planned that they
are being used as a fallback solution if redis is not available.
"""
event = models.ForeignKey(
Event,
on_delete=models.CASCADE,
related_name="quotas",
verbose_name=_("Event"),
)
name = models.CharField(
max_length=200,
verbose_name=_("Name")
@@ -780,6 +786,9 @@ class Quota(models.Model):
verbose_name = _("Quota")
verbose_name_plural = _("Quotas")
def __str__(self):
return self.name
class Order(models.Model):
"""