mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Add all settings to appsettings page & Convert settings choices
This commit is contained in:
parent
62f8ece0ef
commit
7538ddab4f
27 changed files with 454 additions and 447 deletions
|
|
@ -2,7 +2,12 @@ from django.db import models
|
|||
|
||||
|
||||
class AppSettings(models.Model):
|
||||
|
||||
def choices_as_list(self):
|
||||
return self.choices.split(',')
|
||||
|
||||
name = models.CharField(max_length=25, null=False)
|
||||
key = models.CharField(max_length=50, unique=True)
|
||||
key = models.CharField(db_index=True, max_length=50, unique=True)
|
||||
value = models.CharField(max_length=25)
|
||||
description=models.CharField(max_length=100, null=True)
|
||||
choices = models.CharField(max_length=50)
|
||||
description = models.CharField(max_length=100, null=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue