def post(self, request, *args, **kwargs): form = self.dhis2_connection_form if form.is_valid(): form.save(self.domain) get_dhis2_connection.clear(request.domain) return HttpResponseRedirect(self.page_url) context = self.get_context_data(**kwargs) return self.render_to_response(context)
def post(self, request, *args, **kwargs): form = self.dhis2_connection_form if form.is_valid(): form.save(self.domain) get_dhis2_connection.clear(request.domain) return HttpResponseRedirect(self.page_url) context = self.get_context_data(**kwargs) return self.render_to_response(context)