document translations

This commit is contained in:
bkfox
2020-01-06 14:15:49 +01:00
parent 253045e976
commit 078a90f09a
33 changed files with 355 additions and 543 deletions

View File

@ -56,6 +56,12 @@ class BaseView(TemplateResponseMixin, ContextMixin):
streams = streams and streams.split('\n')
kwargs['audio_streams'] = streams
if 'model' not in kwargs:
model = getattr(self, 'model', None) or hasattr(self, 'object') and \
type(self.object)
kwargs['model'] = model
return super().get_context_data(**kwargs)