some fix for zinnia custom templates