Use app's form_cache
This commit is contained in:
@@ -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):
|
||||||
|
Reference in New Issue
Block a user