Skip to content

Commit

Permalink
Use expanded document type list in bids
Browse files Browse the repository at this point in the history
  • Loading branch information
Leits committed Sep 19, 2016
1 parent 51e38d0 commit 0c13d20
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions openprocurement/auctions/dgf/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,6 @@ class FinantialOrganization(BaseOrganization):
additionalIdentifiers = ListType(ModelType(Identifier), required=True, validators=[validate_ua_fin])


class Bid(Bid):
class Options:
roles = {
'create': whitelist('value', 'tenderers', 'parameters', 'lotValues', 'status', 'qualified', 'eligible'),
}

tenderers = ListType(ModelType(FinantialOrganization), required=True, min_size=1, max_size=1)
eligible = BooleanType(required=True, choices=[True])

class Document(Document):
documentType = StringType(choices=[
'auctionNotice', 'awardNotice', 'contractNotice',
Expand All @@ -301,6 +292,17 @@ class Document(Document):
'illustration', 'financialLicense', 'virtualDataRoom',
])


class Bid(Bid):
class Options:
roles = {
'create': whitelist('value', 'tenderers', 'parameters', 'lotValues', 'status', 'qualified', 'eligible'),
}
documents = ListType(ModelType(Document), default=list())
tenderers = ListType(ModelType(FinantialOrganization), required=True, min_size=1, max_size=1)
eligible = BooleanType(required=True, choices=[True])


@implementer(IAuction)
class Auction(DGFOtherAssets):
"""Data regarding auction process - publicly inviting prospective contractors to submit bids for evaluation and selecting a winner or winners."""
Expand Down

0 comments on commit 0c13d20

Please sign in to comment.