mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
Add all settings to appsettings page & Convert settings choices
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user