Use class attribute instead of @property

This commit is contained in:
Edwin Steele
2018-10-09 16:48:51 +11:00
parent f29d57ce45
commit 8f4c31c886

View File

@@ -40,9 +40,7 @@ from sigal.pkgmeta import __url__ as sigal_link
class PageWriter(AbstractWriter):
'''A writer for writing media pages, based on writer'''
@property
def template_file(self):
return "media.html"
template_file = "media.html"
def write(self, album, media_group):
''' Generate the media page and save it '''