Skip to content

Commit 5df54a7

Browse files
TakesxiSximadatomchristie
authored andcommitted
Set a view function's __module__ value to the WrappedAPIView object's __module__ (#4465)
1 parent 07efbdb commit 5df54a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework/decorators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def handler(self, *args, **kwargs):
5555
setattr(WrappedAPIView, method.lower(), handler)
5656

5757
WrappedAPIView.__name__ = func.__name__
58+
WrappedAPIView.__module__ = func.__module__
5859

5960
WrappedAPIView.renderer_classes = getattr(func, 'renderer_classes',
6061
APIView.renderer_classes)

0 commit comments

Comments
 (0)
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