Skip to content

Commit e9b3094

Browse files
JesseCYPXJesse
authored andcommitted
Add column settings to MyFilters
ref T35318
1 parent d75441f commit e9b3094

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from django.db import migrations, models
2+
3+
4+
class Migration(migrations.Migration):
5+
6+
dependencies = [
7+
('my_filters', '0002_migrate_jsonfield'),
8+
]
9+
10+
operations = [
11+
migrations.AddField(
12+
model_name='MyFilter',
13+
name='columns',
14+
field=models.JSONField(default=list, blank=True),
15+
),
16+
]

binder/plugins/my_filters/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class MyFilter(BinderModel):
1313
view = models.TextField()
1414
name = models.TextField()
1515
params = models.JSONField()
16+
columns = models.JSONField(default=list, blank=True)
1617
default = models.BooleanField(default=False)
1718

1819
class Meta(BinderModel.Meta):

0 commit comments

Comments
 (0)