We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9836398 commit 7b9f956Copy full SHA for 7b9f956
django_unicorn/views/__init__.py
@@ -86,10 +86,14 @@ def _process_component_request(
86
request=request,
87
)
88
89
- # This shouldn't happen, but is a fail-safe to make sure that there is always a request on the component
+ # Make sure that there is always a request on the component if needed
90
if component.request is None:
91
component.request = request
92
93
+ # Make sure that there is always a request on the parent if needed
94
+ if component.parent is not None and component.parent.request is None:
95
+ component.parent.request = request
96
+
97
# Get a deepcopy of the data passed in to determine what fields are updated later
98
original_data = copy.deepcopy(component_request.data)
99
0 commit comments