Fix dynamic creation of cached property

This commit is contained in:
Simon Conseil
2021-10-15 21:46:28 +02:00
parent 13a679b295
commit cbaf3d38e5

View File

@@ -108,6 +108,7 @@ def generate_album_zip(album):
def nozip_gallery_file(album, settings=None):
"""Filesystem based switch to disable ZIP generation for an Album"""
Album.zip = cached_property(generate_album_zip)
Album.zip.__set_name__(Album, 'zip')
def register(settings):