def form_valid(self, form): """Change the access control of Radicale service.""" data = form.cleaned_data if quassel.get_domain() != data['domain']: quassel.set_domain(data['domain']) quassel.app.get_component( 'letsencrypt-quassel').setup_certificates() return super().form_valid(form)
def form_valid(self, form): """Change the access control of Radicale service.""" data = form.cleaned_data if quassel.get_domain() != data['domain']: quassel.set_domain(data['domain']) quassel.app.get_component( 'letsencrypt-quassel').setup_certificates() messages.success(self.request, _('Configuration updated')) return super().form_valid(form)
def get_initial(self): """Return the values to fill in the form.""" initial = super().get_initial() initial['domain'] = quassel.get_domain() return initial