Skip to content

Commit

Permalink
Removed pdf_template_name property of proposal model
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoStorm96 committed Nov 13, 2023
1 parent 400071f commit 15410f6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions proposals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,6 @@ def generate_pdf(self, force_overwrite=False):
)
return pdf

@property
def pdf_template_name(self):
return 'proposals/proposal_pdf.html'

def use_canonical_pdf(self):
"""Returns False if this proposal should regenerate its PDF
on request. Proposals that have already been decided on should
Expand Down
6 changes: 0 additions & 6 deletions proposals/views/proposal_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,12 +591,6 @@ def get_object(self, *args, **kwargs):
self.object = super().get_object(*args, **kwargs)
return self.object

def get_template_names(self):
"""Determine the correct PDf template for given proposal"""
proposal = self.get_object()
self.template_name = proposal.pdf_template_name
return [self.template_name]

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)

Expand Down

0 comments on commit 15410f6

Please sign in to comment.