Add proposals JSON field on gov plan

This commit is contained in:
Stefan Wehrmeyer 2022-03-16 12:23:39 +01:00
parent 53e082de06
commit 8283693906
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-03-16 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('froide_govplan', '0007_auto_20220314_1422'),
]
operations = [
migrations.AddField(
model_name='governmentplan',
name='proposals',
field=models.JSONField(blank=True, null=True),
),
]

View file

@ -192,6 +192,8 @@ class GovernmentPlan(models.Model):
Group, null=True, blank=True, on_delete=models.SET_NULL, verbose_name=_("group")
)
proposals = models.JSONField(blank=True, null=True)
objects = GovernmentPlanManager()
class Meta: