1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

added user disk quota limit

added quota warning in instance page
This commit is contained in:
Jan Krcmar 2016-03-31 13:12:52 +02:00
parent 6546fa2570
commit f8e681dbf4
7 changed files with 62 additions and 13 deletions

View file

@ -27,6 +27,7 @@ class UserAttributes(models.Model):
max_instances = models.IntegerField(default=0)
max_cpus = models.IntegerField(default=0)
max_memory = models.IntegerField(default=0)
max_disk_size = models.IntegerField(default=0)
def __unicode__(self):
return self.user.username