mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
Use JSONEncoder
for MediaServer
This commit is contained in:
parent
2a075720e1
commit
e697fc70a1
@ -1,3 +1,4 @@
|
|||||||
|
from common.json import JSONEncoder
|
||||||
from django import db
|
from django import db
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from ..choices import Val, MediaServerType
|
from ..choices import Val, MediaServerType
|
||||||
@ -45,6 +46,7 @@ class MediaServer(db.models.Model):
|
|||||||
)
|
)
|
||||||
options = db.models.JSONField(
|
options = db.models.JSONField(
|
||||||
_('options'),
|
_('options'),
|
||||||
|
encoder=JSONEncoder,
|
||||||
blank=False,
|
blank=False,
|
||||||
null=True,
|
null=True,
|
||||||
help_text=_('Options for the media server'),
|
help_text=_('Options for the media server'),
|
||||||
|
Loading…
Reference in New Issue
Block a user