Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Commit

Permalink
Change template_name to a variable instead of property
Browse files Browse the repository at this point in the history
  • Loading branch information
willbarton committed May 24, 2017
1 parent 8ea4cc1 commit 96fdc57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions complaintdatabase/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ class LandingView(TemplateView):
'http://127.0.0.1:8000/complaintdatabase/demo/demo.json/'
You can use a different file name; just specify it in the last URL field.
"""

@property
def template_name(self):
return "landing-page.html"
template_name = 'landing-page.html'

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

0 comments on commit 96fdc57

Please sign in to comment.