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

Use DjangoJSONEncoder for encoding custom field data

This commit is contained in:
Jeremy Stretch
2020-08-25 13:57:18 -04:00
parent fb8904af54
commit 5b3de8defe
7 changed files with 25 additions and 30 deletions

View File

@ -1,5 +1,4 @@
# Generated by Django 3.1 on 2020-08-21 18:34
import django.core.serializers.json
from django.db import migrations, models
@ -13,6 +12,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='secret',
name='custom_field_data',
field=models.JSONField(blank=True, default=dict),
field=models.JSONField(blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder),
),
]