Skip to content

Commit

Permalink
Added Contract.date
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed May 12, 2016
1 parent 67dca3f commit decbd66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openprocurement/tender/openua/views/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def patch(self):
return
contract_status = self.request.context.status
apply_patch(self.request, save=False, src=self.request.context.serialize())
self.request.context.date = get_now()
if contract_status != self.request.context.status and (contract_status != 'pending' or self.request.context.status != 'active'):
self.request.errors.add('body', 'data', 'Can\'t update contract status')
self.request.errors.status = 403
Expand Down

0 comments on commit decbd66

Please sign in to comment.