Temporarily remove power MIC defaulting to MIC in RAs

Because it only works somtimes :p
This commit is contained in:
2023-06-05 20:50:00 +01:00
committed by GitHub
parent 54b44404ba
commit e1b87b412a

View File

@@ -53,12 +53,6 @@ class EventRiskAssessmentCreate(HSCreateView):
def get_success_url(self):
return reverse('ra_detail', kwargs={'pk': self.object.pk})
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
if context['event'].mic:
context['power_mic'] = context['event'].mic
return context
class EventRiskAssessmentEdit(generic.UpdateView):
model = models.RiskAssessment