Add JSON properties to govplan model
This commit is contained in:
parent
7be24fb7b1
commit
695ba7daed
2 changed files with 19 additions and 0 deletions
18
froide_govplan/migrations/0011_governmentplan_properties.py
Normal file
18
froide_govplan/migrations/0011_governmentplan_properties.py
Normal 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),
|
||||
),
|
||||
]
|
||||
|
|
@ -200,6 +200,7 @@ class GovernmentPlan(models.Model):
|
|||
)
|
||||
|
||||
proposals = models.JSONField(blank=True, null=True)
|
||||
properties = models.JSONField(blank=True, default=dict)
|
||||
|
||||
objects = GovernmentPlanManager()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue