Handle recursive templates in composite columns

This commit is contained in:
Kovid Goyal 2013-07-24 12:31:00 +05:30
parent f3af580d5e
commit 7460446395

View File

@ -223,6 +223,7 @@ def composite_getter(mi, field, metadata, book_id, cache, formatter, template_ca
try:
return cache[field]
except KeyError:
cache[field] = 'RECURSIVE_COMPOSITE FIELD (Metadata) ' + field
ret = cache[field] = formatter.safe_format(
metadata['display']['composite_template'],
mi,