Skip to content

Commit

Permalink
Merge pull request #46 from gorserg/set_tenderID_for_stage2
Browse files Browse the repository at this point in the history
set tenderID for stage2
  • Loading branch information
kroman0 committed Aug 1, 2016
2 parents 1eaf25b + 174d8bd commit a49a328
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openprocurement/tender/competitivedialogue/databridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def get_competitive_dialogue_data(self):
new_tender['procurementMethodType'] = STAGE_2_EU_TYPE
else:
new_tender['procurementMethodType'] = STAGE_2_UA_TYPE

new_tender['tenderID'] = '{}.2'.format(tender['tenderID']) # set tenderID as in stage1 + '.2'
old_lots, items, short_listed_firms = dict(), list(), dict()
for qualification in tender['qualifications']:
if qualification['status'] == 'active': # check if qualification has status active
Expand Down
2 changes: 1 addition & 1 deletion openprocurement/tender/competitivedialogue/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Tender(CompetitiveDialogEU):

stage_2_roles = {
'plain': plain_role,
'create': (blacklist('owner_token', 'tenderPeriod', '_attachments', 'revisions', 'dateModified', 'doc_id', 'tenderID', 'bids', 'documents', 'awards', 'questions', 'complaints', 'auctionUrl', 'status', 'auctionPeriod', 'awardPeriod', 'awardCriteria', 'submissionMethod', 'cancellations') + schematics_embedded_role),
'create': (blacklist('owner_token', 'tenderPeriod', '_attachments', 'revisions', 'dateModified', 'doc_id', 'bids', 'documents', 'awards', 'questions', 'complaints', 'auctionUrl', 'status', 'auctionPeriod', 'awardPeriod', 'awardCriteria', 'submissionMethod', 'cancellations') + schematics_embedded_role),
'edit': whitelist('tenderPeriod'),
'edit_draft': whitelist('status'), # only bridge must change only status
'edit_'+STAGE2_STATUS: whitelist('tenderPeriod', 'status'),
Expand Down

0 comments on commit a49a328

Please sign in to comment.