def get_context_data(self, **kwargs): return ContextSerializer.as_dict(self.request)
def setUp(self): response = self.client.get(reverse("django_js_context")) self.result = json.loads(ContextSerializer.as_json(response.request))
def get_context_data(self, **kwargs): context = super(JsInitView, self).get_context_data(**kwargs) context['urls'] = urls_as_json() context['context'] = ContextSerializer.as_json(self.request) return context
def get_result(self, request): return json.loads(ContextSerializer.as_json(request))
def get_result(self, request): return ContextSerializer.as_dict(request)