1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Render the parameters column as JSON in SavedFiltersTable

This commit is contained in:
kkthxbye-code
2023-03-15 13:03:30 +01:00
committed by Jeremy Stretch
parent 497f3145fa
commit 3b13cef0c8

View File

@ -1,3 +1,5 @@
import json
import django_tables2 as tables
from django.conf import settings
from django.utils.translation import gettext as _
@ -110,6 +112,9 @@ class SavedFilterTable(NetBoxTable):
enabled = columns.BooleanColumn()
shared = columns.BooleanColumn()
def value_parameters(self, value):
return json.dumps(value)
class Meta(NetBoxTable.Meta):
model = SavedFilter
fields = (