Skip to content

Commit

Permalink
fix redirect after saving DQA workplan (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
karasinga authored Nov 27, 2024
1 parent d225c11 commit e770261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dqa/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3411,7 +3411,8 @@ def dqa_work_plan_create(request, pk, quarter_year):
dqa_work_plan.progress = (dqa_work_plan.due_complete_by - today).days
dqa_work_plan.timeframe = (dqa_work_plan.due_complete_by - dqa_work_plan.dqa_date).days
dqa_work_plan.save()
return redirect('show_dqa_work_plan')
messages.success(request, 'DQA Work Plan created successfully!')
return redirect('dqa_work_plan_create', pk=pk, quarter_year=quarter_year)
else:
form = DQAWorkPlanForm()

Expand Down

0 comments on commit e770261

Please sign in to comment.