Project

General

Profile

0004-views-wraps-GenericEndpointView.dispatch-with-deferr.patch

Benjamin Dauvergne, 14 May 2019 10:13 AM

Download (1.02 KB)

View differences:

Subject: [PATCH 4/4] views: wraps GenericEndpointView.dispatch() with deferred
 (#31204)

 passerelle/views.py | 2 ++
 1 file changed, 2 insertions(+)
passerelle/views.py
46 46

  
47 47
from passerelle.base.models import BaseResource, ResourceLog
48 48
from passerelle.utils.jsonresponse import APIError
49
from passerelle.utils import defer
49 50

  
50 51
from .utils import to_json, is_authorized
51 52
from .forms import GenericConnectorForm
......
333 334

  
334 335
        return d
335 336

  
337
    @defer.deferrable_barrier
336 338
    @csrf_exempt
337 339
    def dispatch(self, request, *args, **kwargs):
338 340
        self.init_stuff(request, *args, **kwargs)
339
-