Simplify template context customization for view_profile_buefy

This commit is contained in:
Lance Edgar 2021-10-07 21:13:59 -04:00
parent b9b5a0e79b
commit a919bfb6c5

View file

@ -451,6 +451,12 @@ class PersonView(MasterView):
template = 'view_profile_buefy' if use_buefy else 'view_profile' template = 'view_profile_buefy' if use_buefy else 'view_profile'
return self.render_to_response(template, context) return self.render_to_response(template, context)
def template_kwargs_view_profile_buefy(self, **kwargs):
"""
Method stub, so subclass can always invoke super() for it.
"""
return kwargs
def get_max_lengths(self): def get_max_lengths(self):
model = self.model model = self.model
return { return {