Use app's form_cache

This commit is contained in:
richard-dds
2018-11-16 13:17:31 -05:00
parent 5447be8b52
commit 2f04571767

View File

@@ -13,7 +13,6 @@ from atst.domain.requests.financial_verification import (
) )
from atst.models.attachment import Attachment from atst.models.attachment import Attachment
from atst.domain.task_orders import TaskOrders from atst.domain.task_orders import TaskOrders
from atst.utils.form_cache import FormCache
def fv_extended(_http_request): def fv_extended(_http_request):
@@ -95,7 +94,7 @@ class FinancialVerificationBase(object):
def existing_form_data(): def existing_form_data():
key = http_request.args.get("formCache") key = http_request.args.get("formCache")
if key: if key:
return FormCache(app.redis).read(key) return app.form_cache.read(key)
class GetFinancialVerificationForm(FinancialVerificationBase): class GetFinancialVerificationForm(FinancialVerificationBase):