Project

General

Profile

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

Benjamin Dauvergne, 14 Apr 2020 10:17 AM

Download (1.05 KB)

View differences:

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

 passerelle/views.py | 2 ++
 1 file changed, 2 insertions(+)
passerelle/views.py
51 51
from passerelle.compat import json_loads
52 52
from passerelle.utils.jsonresponse import APIError
53 53
from passerelle.utils.json import unflatten
54
from passerelle.utils import defer
54 55

  
55 56
from .utils import to_json, is_authorized
56 57
from .forms import GenericConnectorForm
......
375 376

  
376 377
        return d
377 378

  
379
    @defer.deferrable_barrier
378 380
    @csrf_exempt
379 381
    def dispatch(self, request, *args, **kwargs):
380 382
        self.init_stuff(request, *args, **kwargs)
381
-