예제 #1
0
파일: models.py 프로젝트: gadbaw/openFEC
 def pdf_url(self):
     if self.report_year and self.report_year >= 2000:
         return utils.make_report_pdf_url(self.beginning_image_number)
     if self.form_type in ['F3X', 'F3P'] and self.report_year > 1993:
         return utils.make_report_pdf_url(self.beginning_image_number)
     if self.form_type == 'F3' and self.committee.committee_type == 'H' and self.report_year > 1996:
         return utils.make_report_pdf_url(self.beginning_image_number)
     return None
예제 #2
0
 def pdf_url(self):
     if self.report_year and self.report_year >= 2000:
         return utils.make_report_pdf_url(self.beginning_image_number)
     if self.form_type in ["F3X", "F3P"] and self.report_year > 1993:
         return utils.make_report_pdf_url(self.beginning_image_number)
     if self.form_type == "F3" and self.committee.committee_type == "H" and self.report_year > 1996:
         return utils.make_report_pdf_url(self.beginning_image_number)
     return None
예제 #3
0
파일: models.py 프로젝트: gadbaw/openFEC
 def pdf_url(self):
     if self.report_year is None or self.committee is None:
         return None
     # House records start May 1996
     if self.committee.committee_type == 'H' and self.report_year < 1996:
         return None
     # Senate records start May 2000
     elif self.committee.committee_type == 'S' and self.report_year < 2000:
         return None
     return utils.make_report_pdf_url(self.beginning_image_number)
예제 #4
0
파일: models.py 프로젝트: NoahKunin/openFEC
 def pdf_url(self):
     if self.report_year is None or self.committee is None:
         return None
     # House records start May 1996
     if self.committee.committee_type == 'H' and self.report_year < 1996:
         return None
     # Senate records start May 2000
     elif self.committee.committee_type == 'S' and self.report_year < 2000:
         return None
     return utils.make_report_pdf_url(self.beginning_image_number)
예제 #5
0
 def pdf_url(self):
     if self.has_pdf:
         return utils.make_report_pdf_url(self.beginning_image_number)
     return None
예제 #6
0
파일: reports.py 프로젝트: 18F/openFEC
 def pdf_url(self):
     if self.has_pdf:
         return utils.make_report_pdf_url(self.beginning_image_number)
     return None
예제 #7
0
파일: models.py 프로젝트: gadbaw/openFEC
 def pdf_url(self):
     if self.report_year is None or self.report_year < 1993:
         return None
     return utils.make_report_pdf_url(self.beginning_image_number)
예제 #8
0
파일: models.py 프로젝트: NoahKunin/openFEC
 def pdf_url(self):
     if self.report_year is None or self.report_year < 1993:
         return None
     return utils.make_report_pdf_url(self.beginning_image_number)
예제 #9
0
파일: costs.py 프로젝트: adborden/openFEC
 def pdf_url(self):
     return utils.make_report_pdf_url(self.image_number)
예제 #10
0
 def pdf_url(self):
     return utils.make_report_pdf_url(self.image_number)