add cache settings and processing time display to cluster view

This commit is contained in:
Eduardo Silva
2026-01-14 09:48:07 -03:00
parent 412c8fc88d
commit 0b0d08f0b2
3 changed files with 35 additions and 11 deletions

View File

@@ -130,13 +130,9 @@ class ClusterSettingsForm(forms.ModelForm):
def clean(self):
cleaned_data = super().clean()
primary_enable_wireguard = cleaned_data.get('primary_enable_wireguard')
cluster_enabled = cleaned_data.get('enabled')
if cluster_enabled and not settings.WIREGUARD_STATUS_CACHE_ENABLED:
raise ValidationError(_("Cluster mode requires WireGuard status cache to be enabled."))
if not primary_enable_wireguard:
raise ValidationError(_("Disabling WireGuard on the master server is currently not supported."))
return cleaned_data