Skip to content

Commit

Permalink
Updated bid actions validation in tendering period
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Apr 8, 2016
1 parent 0b74d9d commit 0d1b9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openprocurement/tender/openua/views/bid.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def patch(self):
return
tender = self.request.validated['tender']
if self.request.authenticated_role != 'Administrator' and (tender.tenderPeriod.startDate and get_now() < tender.tenderPeriod.startDate or get_now() > tender.tenderPeriod.endDate):
self.request.errors.add('body', 'data', 'Bid can be updated only during the tendering period: from ({}) to ({}).'.format(tender.tenderPeriod.startDate and tender.tenderPeriod.startDate.isoformat()(), tender.tenderPeriod.endDate.isoformat()))
self.request.errors.add('body', 'data', 'Bid can be updated only during the tendering period: from ({}) to ({}).'.format(tender.tenderPeriod.startDate and tender.tenderPeriod.startDate.isoformat(), tender.tenderPeriod.endDate.isoformat()))
self.request.errors.status = 403
return
bid_status_to = self.request.validated['data'].get("status")
Expand Down

0 comments on commit 0d1b9da

Please sign in to comment.