Commit 05a5dc5f authored by root's avatar root

fix: old_dkim value to bool

parent 479ee719
......@@ -158,7 +158,7 @@ class EditDomainView(FormView):
webmaster = form['webmaster'].value()
mail = form['mail_server'].value()
dkim = bool(form['dkim'].value())
old_dkim = form['old_dkim'].value()
old_dkim = utils.ldap_val(form['old_dkim'].value())
try:
self.request.ldap.modify(dn, {
......@@ -170,7 +170,6 @@ class EditDomainView(FormView):
messages.error(self.request, _('Ha habido un error modificando el dominio. '
'Si el problema persiste contacta '
'con los administrador-s'))
if dkim != old_dkim:
if dkim:
utils.add_dkim(self.request.ldap, self.domain_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment