From de01c7a014ac97564e9ed955b9791d3536555723 Mon Sep 17 00:00:00 2001 From: Bohdan Khorolets Date: Fri, 30 Sep 2016 13:32:57 +0300 Subject: [PATCH] Rename variable, because from second request NameError occurs (#33) --- flask_restplus_patched/resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_restplus_patched/resource.py b/flask_restplus_patched/resource.py index f84af055..bdf3016d 100644 --- a/flask_restplus_patched/resource.py +++ b/flask_restplus_patched/resource.py @@ -59,7 +59,7 @@ def options(self, *args, **kwargs): # and over again method_func.__dict__['_cached_fake_method_func'] = fake_method_func else: - fake_method_func = method._cached_fake_method_func + fake_method_func = method_func._cached_fake_method_func try: fake_method_func(self, *args, **kwargs)