code: def render_te_response(self, data):
          
          if 'submit_label' in data and 'url' not in data:
              data['url'] = self.request.get_full_path()
  
          return JsonResponse(data)
docs: Render data to JsonResponse