From 3f41d4bd79d872a24cc2627fca9ddc82069e90b8 Mon Sep 17 00:00:00 2001 From: thecyberlearn Date: Fri, 5 Sep 2025 08:42:57 +0530 Subject: [PATCH] Fix undefined cache_user_data decorator in wallet views MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Comment out @cache_user_data decorator that was not imported/defined - This resolves NameError preventing Django startup - Temporary fix - caching can be re-enabled later with proper decorator 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- wallet/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/views.py b/wallet/views.py index 7e28f94..fb85c7d 100644 --- a/wallet/views.py +++ b/wallet/views.py @@ -29,7 +29,7 @@ STRIPE_WEBHOOK_IPS = [ @login_required -@cache_user_data('wallet_data', timeout=300) # Cache for 5 minutes +# @cache_user_data('wallet_data', timeout=300) # Cache for 5 minutes - decorator not defined def wallet_view(request): """Wallet management page with optimized queries""" from django.db.models import Sum, Q