include updated task order page and fix TaskOrders.get call

This commit is contained in:
dandds
2019-01-14 12:42:46 -05:00
parent 2aea85b9c0
commit 25a34d5608
2 changed files with 154 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ def portfolio_task_orders(portfolio_id):
@portfolios_bp.route("/portfolios/<portfolio_id>/task_order/<task_order_id>")
def view_task_order(portfolio_id, task_order_id):
portfolio = Portfolios.get(g.current_user, portfolio_id)
task_order = TaskOrders.get(task_order_id)
task_order = TaskOrders.get(g.current_user, task_order_id)
return render_template(
"portfolios/task_orders/show.html", portfolio=portfolio, task_order=task_order
)