|
7 | 7 | from marshmallow_sqlalchemy import SQLAlchemySchema, SQLAlchemyAutoSchema
|
8 | 8 | from marshmallow_pagination import schemas as paging_schemas
|
9 | 9 |
|
10 |
| -from webservices import utils, decoders |
| 10 | +from webservices import utils, decoders, docs |
11 | 11 | from webservices.spec import spec
|
12 | 12 | from webservices.common import models
|
13 | 13 | from webservices import __API_VERSION__
|
@@ -999,7 +999,7 @@ class CandidateHistoryTotalSchema(schemas['CandidateHistorySchema'],
|
999 | 999 | 'committee': ma.fields.Nested(schemas['CommitteeHistorySchema']),
|
1000 | 1000 | 'contributor': ma.fields.Nested(schemas['CommitteeHistorySchema']),
|
1001 | 1001 | 'contribution_receipt_amount': ma.fields.Float(),
|
1002 |
| - 'contributor_aggregate_ytd': ma.fields.Float(), |
| 1002 | + 'contributor_aggregate_ytd': ma.fields.Float(description=docs.CONTRIBUTOR_AGGREGATE_YTD), |
1003 | 1003 | 'image_number': ma.fields.Str(),
|
1004 | 1004 | 'original_sub_id': ma.fields.Str(),
|
1005 | 1005 | 'sub_id': ma.fields.Str(),
|
@@ -1610,8 +1610,8 @@ class ElectionSchema(ma.Schema):
|
1610 | 1610 | incumbent_challenge_full = ma.fields.Str()
|
1611 | 1611 | party_full = ma.fields.Str()
|
1612 | 1612 | committee_ids = ma.fields.List(ma.fields.Str)
|
1613 |
| - candidate_pcc_id = ma.fields.Str(doc="The candidate's primary campaign committee ID") |
1614 |
| - candidate_pcc_name = ma.fields.Str(doc="The candidate's primary campaign committee name") |
| 1613 | + candidate_pcc_id = ma.fields.Str(description=docs.CANDIDATE_PCC_ID) |
| 1614 | + candidate_pcc_name = ma.fields.Str(description=docs.CANDIDATE_PCC_NAME) |
1615 | 1615 | total_receipts = ma.fields.Float()
|
1616 | 1616 | total_disbursements = ma.fields.Float()
|
1617 | 1617 | cash_on_hand_end_period = ma.fields.Float()
|
@@ -1675,7 +1675,7 @@ class TotalsCommitteeSchema(schemas['CommitteeHistorySchema']):
|
1675 | 1675 | EntityReceiptDisbursementTotalsSchema = make_schema(
|
1676 | 1676 | models.EntityReceiptDisbursementTotals,
|
1677 | 1677 | options={'exclude': ('idx', 'month', 'year')},
|
1678 |
| - fields={'end_date': ma.fields.Date(doc='The cumulative total for this month.')}, |
| 1678 | + fields={'end_date': ma.fields.Date(description=docs.END_DATE_ENTITY_CHART)} |
1679 | 1679 | )
|
1680 | 1680 | EntityReceiptDisbursementTotalsPageSchema = make_page_schema(EntityReceiptDisbursementTotalsSchema)
|
1681 | 1681 | register_schema(EntityReceiptDisbursementTotalsSchema)
|
|
0 commit comments