@@ -124,19 +124,12 @@ def create_task(request):
124124 user = request .user ,
125125 )
126126
127- # Redirect to `action-inline` if we're coming
128- # from `action-inline` after create
129- # TODO remove the logic about 'next' field in the form when the recommendation tab is removed
130- next_url = type_form .cleaned_data ["next" ]
131127 conversation_url = reverse (
132128 "projects-project-detail-conversations" , args = [project .id ]
133129 )
134- if not next_url or next_url == "None" :
135- next_url = conversation_url
136-
137- if not action .public and next_url == conversation_url :
138- next_url += "#drafts"
139- return redirect (next_url )
130+ if not action .public :
131+ conversation_url += "#drafts"
132+ return redirect (conversation_url )
140133
141134 else :
142135 type_form = PushTypeActionForm (request .user , request .GET )
@@ -300,16 +293,12 @@ def update_task(request, task_id=None):
300293 user = request .user ,
301294 )
302295
303- if form .cleaned_data ["next" ] and form .cleaned_data ["next" ] != "None" :
304- return redirect (form .cleaned_data ["next" ])
305-
306296 return redirect (
307297 reverse ("projects-project-detail-conversations" , args = [task .project_id ])
308298 )
309299 else :
310300 initial = {
311301 "topic_name" : task .topic .name if task .topic else None ,
312- "next" : request .GET .get ("next" ),
313302 }
314303 form = UpdateTaskForm (instance = task , initial = initial )
315304 # Initialize preserved_content for template compatibility
0 commit comments