Exception Value: Object of type User is not JSON serializable
current_user = request.user
current_user = serialize('json', self.get_queryset())
return HttpResponse(current_user, content_type="application/json")
Are there any code examples left?
New code examples in category Python