Skip to content

Commit

Permalink
feat(section): flag for allowance of experimental plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Dec 17, 2023
1 parent 6d74c72 commit dd5aa3a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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'),
),
]
5 changes: 5 additions & 0 deletions fiesta/apps/sections/models/section.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dd5aa3a

Please sign in to comment.