From 465e0b7ae0dce7716140f371515c5298049fcbd0 Mon Sep 17 00:00:00 2001 From: TakesxiSximada Date: Sun, 4 Sep 2016 21:40:44 +0900 Subject: [PATCH] Set a view function's __module__ value to the WrappedAPIView object's __module__ --- rest_framework/decorators.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rest_framework/decorators.py b/rest_framework/decorators.py index 1b21e643b3..554e5236cc 100644 --- a/rest_framework/decorators.py +++ b/rest_framework/decorators.py @@ -55,6 +55,7 @@ def handler(self, *args, **kwargs): setattr(WrappedAPIView, method.lower(), handler) WrappedAPIView.__name__ = func.__name__ + WrappedAPIView.__module__ = func.__module__ WrappedAPIView.renderer_classes = getattr(func, 'renderer_classes', APIView.renderer_classes) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy