summaryrefslogtreecommitdiff
path: root/releng
diff options
context:
space:
mode:
Diffstat (limited to 'releng')
-rw-r--r--releng/models.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/releng/models.py b/releng/models.py
index 56187766..98454e95 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -4,6 +4,7 @@ from django.db.models.signals import pre_save
from main.utils import set_created_field
+
class IsoOption(models.Model):
name = models.CharField(max_length=200)
@@ -13,10 +14,12 @@ class IsoOption(models.Model):
class Meta:
abstract = True
+
class RollbackOption(IsoOption):
class Meta:
abstract = True
+
class Iso(models.Model):
name = models.CharField(max_length=255)
created = models.DateTimeField(editable=False)
@@ -32,37 +35,48 @@ class Iso(models.Model):
class Meta:
verbose_name = 'ISO'
+
class Architecture(IsoOption):
pass
+
class IsoType(IsoOption):
class Meta:
verbose_name = 'ISO type'
+
class BootType(IsoOption):
pass
+
class HardwareType(IsoOption):
pass
+
class InstallType(IsoOption):
pass
+
class Source(IsoOption):
pass
+
class ClockChoice(IsoOption):
pass
+
class Filesystem(RollbackOption):
pass
+
class Module(RollbackOption):
pass
+
class Bootloader(IsoOption):
pass
+
class Test(models.Model):
user_name = models.CharField(max_length=500)
user_email = models.EmailField()