Combine client authorisation information in rig detail (#373)

* Combine client authorisation information in rig detail

* Fix stuff for CI

pep8 compliance
migration
This commit is contained in:
2019-11-26 17:26:32 +00:00
committed by GitHub
parent 4da8040351
commit 5210afc772
5 changed files with 73 additions and 53 deletions

View File

@@ -83,6 +83,7 @@ class EventEmbed(EventDetail):
class EventRA(generic.base.RedirectView):
permanent = False
def get_redirect_url(self, *args, **kwargs):
event = get_object_or_404(models.Event, pk=kwargs['pk'])
@@ -406,6 +407,7 @@ class EventAuthoriseRequestEmailPreview(generic.DetailView):
context['to_name'] = self.request.GET.get('to_name', None)
return context
@method_decorator(csrf_exempt, name='dispatch')
class LogRiskAssessment(generic.View):
http_method_names = ["post"]