Add JSON properties to govplan model

This commit is contained in:
Stefan Wehrmeyer 2022-05-13 18:39:44 +02:00
parent 7be24fb7b1
commit 695ba7daed
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-05-13 15:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('froide_govplan', '0010_governmentplanscmsplugin_extra_classes'),
]
operations = [
migrations.AddField(
model_name='governmentplan',
name='properties',
field=models.JSONField(blank=True, default=dict),
),
]

View file

@ -200,6 +200,7 @@ class GovernmentPlan(models.Model):
) )
proposals = models.JSONField(blank=True, null=True) proposals = models.JSONField(blank=True, null=True)
properties = models.JSONField(blank=True, default=dict)
objects = GovernmentPlanManager() objects = GovernmentPlanManager()