Skip to content

Commit

Permalink
Merge branch 'a145319666913685_test_mode'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Jul 11, 2016
2 parents 67dde9f + bfbad55 commit 414357e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openprocurement/contracting/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from openprocurement.api.utils import (error_handler, get_revision_changes,
context_unpack, update_logging_context,
apply_data_patch, generate_id,
set_modetest_titles,
get_filename, DOCUMENT_BLACKLISTED_FIELDS
)
from openprocurement.api.models import Revision, get_now
Expand Down Expand Up @@ -55,6 +56,9 @@ def save_contract(request):
:return: True if Ok
"""
contract = request.validated['contract']

if contract.mode == u'test':
set_modetest_titles(contract)
patch = get_revision_changes(contract.serialize("plain"),
request.validated['contract_src'])
if patch:
Expand Down

0 comments on commit 414357e

Please sign in to comment.