Commit d2668593 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Create QuotaHolderSerial table

parent 0dc28e89
......@@ -184,6 +184,21 @@ BACKEND_STATUSES = (
)
class QuotaHolderSerial(models.Model):
serial = models.BigIntegerField(null=False, primary_key=True, db_index=True)
pending = models.BooleanField(default=True, db_index=True)
accepted = models.BooleanField(default=False)
rejected = models.BooleanField(default=False)
class Meta:
verbose_name = u'Quota Serial'
ordering = ["serial"]
def save(self, *args, **kwargs):
self.pending = not (self.accepted or self.rejected)
super(QuotaHolderSerial, self).save(*args, **kwargs)
class VirtualMachine(models.Model):
# The list of possible actions for a VM
ACTIONS = (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment