mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 21:46:44 +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.utils.translation import gettext_lazy as _
|
||||
from ..choices import Val, MediaServerType
|
||||
@ -45,6 +46,7 @@ class MediaServer(db.models.Model):
|
||||
)
|
||||
options = db.models.JSONField(
|
||||
_('options'),
|
||||
encoder=JSONEncoder,
|
||||
blank=False,
|
||||
null=True,
|
||||
help_text=_('Options for the media server'),
|
||||
|
Loading…
Reference in New Issue
Block a user