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:
@ -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),
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user