Project

General

Profile

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

Benjamin Dauvergne, 04 Oct 2019 02:04 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
......
344 345

  
345 346
        return d
346 347

  
348
    @defer.deferrable_barrier
347 349
    @csrf_exempt
348 350
    def dispatch(self, request, *args, **kwargs):
349 351
        self.init_stuff(request, *args, **kwargs)
350
-