def get_context_data(self, answer_id, **kwargs): context = EditAnswerView.get_context_data(self, answer_id, **kwargs) context.update({ 'project_translation': self.project_translation, 'active_tab': 'support', }) return context
def get_context_data(self, answer_id, **kwargs): context = EditAnswerView.get_context_data(self, answer_id, **kwargs) context.update(lookup_ml_membership(self.workgroup)) context.update({ 'workgroup': self.workgroup, 'active_tab': 'workgroup', }) return context
def dispatch(self, request, *args, **kwargs): self.project_translation = self.get_project_translation( kwargs["project_slug"]) return EditAnswerView.dispatch(self, request, *args, **kwargs)
def dispatch(self, request, *args, **kwargs): self.workgroup = get_object_or_404(WorkGroup, slug=kwargs["workgroup_slug"]) return EditAnswerView.dispatch(self, request, *args, **kwargs)
def get_context_data(self, answer_id, **kwargs): context = EditAnswerView.get_context_data(self, answer_id, **kwargs) context.update({"project_translation": self.project_translation, "active_tab": "support"}) return context
def dispatch(self, request, *args, **kwargs): self.project_translation = self.get_project_translation(kwargs["project_slug"]) return EditAnswerView.dispatch(self, request, *args, **kwargs)