Skip to content

Commit

Permalink
Merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
ktarasz committed Mar 22, 2016
1 parent ca008d5 commit 0a842a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openprocurement/tender/openua/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,14 @@ def validate_tenderPeriod(self, data, period):
raise ValidationError(u"tenderPeriod should be greater than 15 days")

def initialize(self):
endDate = calculate_business_date(self.tenderPeriod.endDate, -ENQUIRY_PERIOD_TIME)
endDate = calculate_business_date(self.tenderPeriod.endDate, -ENQUIRY_PERIOD_TIME, self)
self.enquiryPeriod = EnquiryPeriod(dict(startDate=self.tenderPeriod.startDate,
endDate=endDate,
clarificationsUntil=calculate_business_date(endDate, ENQUIRY_STAND_STILL_TIME, self, True)))

@serializable(serialized_name="enquiryPeriod", type=ModelType(EnquiryPeriod))
def tender_enquiryPeriod(self):
endDate = calculate_business_date(self.tenderPeriod.endDate, -ENQUIRY_PERIOD_TIME)
endDate = calculate_business_date(self.tenderPeriod.endDate, -ENQUIRY_PERIOD_TIME, self)
return EnquiryPeriod(dict(startDate=self.tenderPeriod.startDate,
endDate=endDate,
clarificationsUntil=calculate_business_date(endDate, ENQUIRY_STAND_STILL_TIME, self, True)))
Expand Down

0 comments on commit 0a842a2

Please sign in to comment.