Rename review route and template to view because it better reflects the purpose of the route and template

This commit is contained in:
leigh-mil
2019-12-19 14:28:00 -05:00
parent 2f7a974955
commit cbcac2b142
9 changed files with 12 additions and 12 deletions

View File

@@ -8,9 +8,9 @@ from atst.forms.task_order import SignatureForm
from atst.models import Permissions
@task_orders_bp.route("/task_orders/<task_order_id>/review")
@task_orders_bp.route("/task_orders/<task_order_id>")
@user_can(Permissions.VIEW_TASK_ORDER_DETAILS, message="review task order details")
def review_task_order(task_order_id):
def view_task_order(task_order_id):
task_order = TaskOrders.get(task_order_id)
if task_order.is_draft:
return redirect(url_for("task_orders.edit", task_order_id=task_order.id))