feat: presets

This commit is contained in:
Herculino Trotta
2025-01-23 11:43:35 -03:00
parent 16fbead2f9
commit cabd03e7e6
12 changed files with 223 additions and 12 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ from apps.import_app.schemas import version_1
class ImportProfile(models.Model):
class Versions(models.IntegerChoices):
VERSION_1 = 1, _("Version 1")
VERSION_1 = 1, _("Version") + " 1"
name = models.CharField(max_length=100, verbose_name=_("Name"))
name = models.CharField(max_length=100, verbose_name=_("Name"), unique=True)
yaml_config = models.TextField(verbose_name=_("YAML Configuration"))
version = models.IntegerField(
choices=Versions,