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

        return JsonResponse(data)
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 )
Render data to JsonResponse