From dd5aa3a2f783e158030ed7530116660d5a10692b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Kol=C3=A1=C5=99?= Date: Sun, 17 Dec 2023 15:11:12 +0100 Subject: [PATCH] feat(section): flag for allowance of experimental plugins --- .../0023_section_allow_experimental_plugins.py | 18 ++++++++++++++++++ fiesta/apps/sections/models/section.py | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 fiesta/apps/sections/migrations/0023_section_allow_experimental_plugins.py diff --git a/fiesta/apps/sections/migrations/0023_section_allow_experimental_plugins.py b/fiesta/apps/sections/migrations/0023_section_allow_experimental_plugins.py new file mode 100644 index 00000000..17faa33a --- /dev/null +++ b/fiesta/apps/sections/migrations/0023_section_allow_experimental_plugins.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2023-12-17 14:08 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('sections', '0022_sectionsconfiguration_required_birth_date'), + ] + + operations = [ + migrations.AddField( + model_name='section', + name='allow_experimental_plugins', + field=models.BooleanField(default=False, verbose_name='allow experimental plugins'), + ), + ] diff --git a/fiesta/apps/sections/models/section.py b/fiesta/apps/sections/models/section.py index 30a9a6b7..991b57af 100644 --- a/fiesta/apps/sections/models/section.py +++ b/fiesta/apps/sections/models/section.py @@ -63,6 +63,11 @@ class Section(BaseTimestampedModel): db_index=True, ) + allow_experimental_plugins = models.BooleanField( + default=False, + verbose_name=_("allow experimental plugins"), + ) + class SystemState(TextChoices): ENABLED = "enabled", _("Enabled") PAUSED = "paused", _("Paused")