`class ModuleViewMixin(object):
    module = 'undefined'

    def get_context_data(self, **kw):
        context = super(ModuleViewMixin, self).get_context_data(**kwargs)
        context.update(dict(module=self.module))
        return context
...
class EditSpellView(ModuleViewMixin, UpdateView):
    module = 'spells'
`