diff --git a/shared/json/views.py b/shared/json/views.py index dd2363e..5e5df85 100644 --- a/shared/json/views.py +++ b/shared/json/views.py @@ -55,7 +55,9 @@ class JsonDetailView(JsonMixin, SingleObjectMixin, TemplateResponseMixin, View): def get(self, request, *args, **kwargs): self.object = self.get_object() context = self.get_context_data(object=self.object) - return self.render_to_json(html=self.render_to_response(context)) + return self.render_to_json( + html=self.render_to_response(context).rendered_content + ) class JsonDeleteView(JsonMessageMixin, JsonDetailView):