mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fixes the user arguments json field decoding (#5307)
This commit is contained in:
parent
d46abeff01
commit
ea47af7034
@ -1,3 +1,5 @@
|
||||
import logging
|
||||
|
||||
from django.contrib.auth.models import Group
|
||||
from django.contrib.auth.models import Permission
|
||||
from django.contrib.auth.models import User
|
||||
@ -5,6 +7,8 @@ from rest_framework import serializers
|
||||
|
||||
from paperless.models import ApplicationConfiguration
|
||||
|
||||
logger = logging.getLogger("paperless.settings")
|
||||
|
||||
|
||||
class ObfuscatedUserPasswordField(serializers.Field):
|
||||
"""
|
||||
@ -118,6 +122,8 @@ class ProfileSerializer(serializers.ModelSerializer):
|
||||
|
||||
|
||||
class ApplicationConfigurationSerializer(serializers.ModelSerializer):
|
||||
user_args = serializers.JSONField(binary=True)
|
||||
|
||||
class Meta:
|
||||
model = ApplicationConfiguration
|
||||
fields = "__all__"
|
||||
|
Loading…
x
Reference in New Issue
Block a user