Project

General

Profile

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

Benjamin Dauvergne, 22 Mar 2019 11:05 PM

Download (1015 Bytes)

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
33 33

  
34 34
from passerelle.base.models import BaseResource, ResourceLog
35 35
from passerelle.utils.jsonresponse import APIError
36
from passerelle.utils import defer
36 37

  
37 38
from .utils import to_json, response_for_json, is_authorized
38 39
from .forms import GenericConnectorForm
......
307 308

  
308 309
        return d
309 310

  
311
    @defer.deferrable_barrier
310 312
    @csrf_exempt
311 313
    def dispatch(self, request, *args, **kwargs):
312 314
        self.init_stuff(request, *args, **kwargs)
313
-