Skip to content

Commit

Permalink
handle nested fields & avoid file copy error
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Jul 6, 2022
1 parent 5da66b1 commit 4e97e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from django.conf import settings

from rest_framework.utils import model_meta
from html_json_forms.serializers import JSONFormSerializer
from html_json_forms.serializers import parse_json_form, JSONFormSerializer
from .model_tools import get_object_id
from .exceptions import ImproperlyConfigured

Expand Down Expand Up @@ -377,7 +377,7 @@ def to_internal_value(self, data):
if not getattr(self.Meta, 'wq_fieldsets', None):
return super().to_internal_value(data)

data = data.copy()
data = parse_json_form(data)
for name, conf in self.Meta.wq_fieldsets.items():
if name == '':
continue
Expand Down

0 comments on commit 4e97e1b

Please sign in to comment.