Now the template_name for widget could be callable. If it is callable, it would be called automatically with 2 parameters: context and widget itself.