Skip to content

Commit

Permalink
Docstrings for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Aug 8, 2017
1 parent e137278 commit 9ede8d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,18 @@ def filer_ids(self):

@property
def form501_filing_ids(self):
"""
Returns any linked Form 501 filing ids.
"""
try:
return self.extras['form501_filing_ids']
except KeyError:
return []

@property
def form501s(self):
"""
Returns any linked Form 501 objects.
"""
from calaccess_processed.models import Form501Filing
return Form501Filing.objects.filter(filing_id__in=self.form501_filing_ids)
3 changes: 3 additions & 0 deletions calaccess_processed/models/proxies/opencivicdata/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ def scraped_candidates(self):

@property
def form501s(self):
"""
Returns any linked Form 501s filings.
"""
from calaccess_processed.models import OCDCandidacyProxy
candidacies = OCDCandidacyProxy.objects.filter(person=self)
form501s = []
Expand Down

0 comments on commit 9ede8d3

Please sign in to comment.