(self, *args, **kwargs)
| 47 | WrappedAPIView.http_method_names = [method.lower() for method in allowed_methods] |
| 48 | |
| 49 | def handler(self, *args, **kwargs): |
| 50 | return func(*args, **kwargs) |
| 51 | |
| 52 | for method in http_method_names: |
| 53 | setattr(WrappedAPIView, method.lower(), handler) |