mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
set default UserAttributes to instances=1, vcpus=1, memory=2048, disk=20
This commit is contained in:
parent
db1ab88f51
commit
25529835b5
2 changed files with 38 additions and 4 deletions
|
|
@ -24,10 +24,10 @@ class UserSSHKey(models.Model):
|
|||
class UserAttributes(models.Model):
|
||||
user = models.OneToOneField(User, on_delete=models.CASCADE)
|
||||
can_clone_instances = models.BooleanField(default=False)
|
||||
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)
|
||||
max_instances = models.IntegerField(default=1)
|
||||
max_cpus = models.IntegerField(default=1)
|
||||
max_memory = models.IntegerField(default=2048)
|
||||
max_disk_size = models.IntegerField(default=20)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.user.username
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue