Skip to content

Commit a5dc541

Browse files
committed
Make sure that the request gets set even if the constructed view is already cached.
1 parent 19b9d4f commit a5dc541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_unicorn/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def create(
605605

606606
if cache_key in constructed_views_cache:
607607
component = constructed_views_cache[cache_key]
608-
# component.request = request
608+
component.setup(request)
609609
component._validate_called = False
610610
logger.debug(f"Retrieve {cache_key} from constructed views cache")
611611
return component

0 commit comments

Comments
 (0)