-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
248 additions
and
4 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
...urceproxy_ocdcandidatecontestpostproxy_ocdcandidatecontestsourceproxy_ocdelectionident.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.3 on 2017-08-14 17:06 | ||
from __future__ import unicode_literals | ||
|
||
import calaccess_processed.models.proxies.opencivicdata.base | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('elections', '0002_auto_20170731_2047'), | ||
('calaccess_processed', '0003_auto_20170811_2020'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='OCDCandidacySourceProxy', | ||
fields=[ | ||
], | ||
options={ | ||
'proxy': True, | ||
'indexes': [], | ||
}, | ||
bases=('elections.candidacysource', calaccess_processed.models.proxies.opencivicdata.base.OCDProxyModelMixin), | ||
), | ||
migrations.CreateModel( | ||
name='OCDCandidateContestPostProxy', | ||
fields=[ | ||
], | ||
options={ | ||
'proxy': True, | ||
'indexes': [], | ||
}, | ||
bases=('elections.candidatecontestpost', calaccess_processed.models.proxies.opencivicdata.base.OCDProxyModelMixin), | ||
), | ||
migrations.CreateModel( | ||
name='OCDCandidateContestSourceProxy', | ||
fields=[ | ||
], | ||
options={ | ||
'proxy': True, | ||
'indexes': [], | ||
}, | ||
bases=('elections.candidatecontestsource', calaccess_processed.models.proxies.opencivicdata.base.OCDProxyModelMixin), | ||
), | ||
migrations.CreateModel( | ||
name='OCDElectionIdentifierProxy', | ||
fields=[ | ||
], | ||
options={ | ||
'proxy': True, | ||
'indexes': [], | ||
}, | ||
bases=('elections.electionidentifier', calaccess_processed.models.proxies.opencivicdata.base.OCDProxyModelMixin), | ||
), | ||
migrations.CreateModel( | ||
name='OCDElectionSourceProxy', | ||
fields=[ | ||
], | ||
options={ | ||
'proxy': True, | ||
'indexes': [], | ||
}, | ||
bases=('elections.electionsource', calaccess_processed.models.proxies.opencivicdata.base.OCDProxyModelMixin), | ||
), | ||
] |
57 changes: 57 additions & 0 deletions
57
calaccess_processed/models/proxies/opencivicdata/ballotmeasures.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Proxy models for augmenting our source data tables with methods useful for processing. | ||
""" | ||
from __future__ import unicode_literals | ||
from opencivicdata.elections.models import ( | ||
BallotMeasureContest, | ||
BallotMeasureContestIdentifier, | ||
BallotMeasureContestOption, | ||
BallotMeasureContestSource, | ||
) | ||
from .base import OCDProxyModelMixin | ||
|
||
|
||
class OCDBallotMeasureContestProxy(BallotMeasureContest, OCDProxyModelMixin): | ||
""" | ||
A proxy on the OCD BallotMeasureContest model. | ||
""" | ||
class Meta: | ||
""" | ||
Make this a proxy model. | ||
""" | ||
proxy = True | ||
|
||
|
||
class OCDBallotMeasureContestIdentifierProxy(BallotMeasureContestIdentifier, OCDProxyModelMixin): | ||
""" | ||
A proxy on the OCD BallotMeasureContestIdentifier model. | ||
""" | ||
class Meta: | ||
""" | ||
Make this a proxy model. | ||
""" | ||
proxy = True | ||
|
||
|
||
class OCDBallotMeasureContestOptionProxy(BallotMeasureContestOption, OCDProxyModelMixin): | ||
""" | ||
A proxy on the OCD BallotMeasureContestOption model. | ||
""" | ||
class Meta: | ||
""" | ||
Make this a proxy model. | ||
""" | ||
proxy = True | ||
|
||
|
||
class OCDBallotMeasureContestSourceProxy(BallotMeasureContestSource, OCDProxyModelMixin): | ||
""" | ||
A proxy on the OCD BallotMeasureContestSource model. | ||
""" | ||
class Meta: | ||
""" | ||
Make this a proxy model. | ||
""" | ||
proxy = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
calaccess_processed/models/proxies/opencivicdata/retentioncontests.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Proxy models for augmenting our source data tables with methods useful for processing. | ||
""" | ||
from __future__ import unicode_literals | ||
from opencivicdata.elections.models import ( | ||
RetentionContest, | ||
RetentionContestIdentifier, | ||
RetentionContestOption, | ||
RetentionContestSource, | ||
) | ||
from .base import OCDProxyModelMixin | ||
|
||
|
||
class OCDRetentionContestProxy(RetentionContest, OCDProxyModelMixin): | ||
""" | ||
A proxy on the OCD RetentionContest model. | ||
""" | ||
class Meta: | ||
""" | ||
Make this a proxy model. | ||
""" | ||
proxy = True | ||
|
||
|
||
class OCDRetentionContestIdentifierProxy(RetentionContestIdentifier, OCDProxyModelMixin): | ||
""" | ||
A proxy on the OCD RetentionContestIdentifier model. | ||
""" | ||
class Meta: | ||
""" | ||
Make this a proxy model. | ||
""" | ||
proxy = True | ||
|
||
|
||
class OCDRetentionContestOptionProxy(RetentionContestOption, OCDProxyModelMixin): | ||
""" | ||
A proxy on the OCD RetentionContestOption model. | ||
""" | ||
class Meta: | ||
""" | ||
Make this a proxy model. | ||
""" | ||
proxy = True | ||
|
||
|
||
class OCDRetentionContestSourceProxy(RetentionContestSource, OCDProxyModelMixin): | ||
""" | ||
A proxy on the OCD RetentionContestSource model. | ||
""" | ||
class Meta: | ||
""" | ||
Make this a proxy model. | ||
""" | ||
proxy = True |