Aaand hasattr not working as expected

This commit is contained in:
Alexandre Aubin 2022-01-29 18:28:07 +01:00
parent e46fe6b77b
commit adb0e67b25

View file

@ -500,7 +500,8 @@ class DomainConfigPanel(ConfigPanel):
super()._load_current_values()
# FIXME: Ugly hack to save the registar id/value and reinject it in _load_current_values ...
if hasattr(self, "registrar_id"):
filter_key = self.filter_key.split(".") if self.filter_key != "" else []
if not filter_key or filter_key[0] == "dns":
self.values["registrar"] = self.registar_id