I have the following view and facing an issue with it any guidance or help is much appreciated #466
Replies: 3 comments 1 reply
-
It appears that you have a class based view but have excluded all the code that can help others help you resolve your issue. The request object is likely not to have attribute "activation" if the underlying class based view does not implement the Flow mechanisms. |
Beta Was this translation helpful? Give feedback.
-
That was kind of obvious. You are not making it particularly easy to help you. But in any case, follow this class https://github.com/viewflow/cookbook/blob/main/workflow101/bloodtest/views.py#L80 |
Beta Was this translation helpful? Give feedback.
-
Hm, maybe you've added your view directly into URL patterns config instead of flow class urls? Viewflow wraps views and initialises request.acticlvation in a wrapper code, before actual view call You own view itself doesn't need any additional code, the request.activation initialized in a wrapper https://github.com/viewflow/viewflow/blob/main/viewflow/workflow/flow/nodes.py#L43 So when you've added flow urls into URL patterns, when you access /process_pk/task_pk/ the wrapper is called and request.activation is initialized |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions