Sunil Mohan Adapa 81c5268ff6
privacy: Add option in UI to set lookup URL for public IPs
- This will act as centralized location to set the URL to lookup IP addresses.

Tests:

- When no value is set initially, the URL for Foundation is shown. This also
happens when the value is removed from 'plinth_kvstore' sqlite3 table.

- When empty value is set it, the empty value is set in DB and show in the UI.

- When no value is changed and form is updated, message is shown that settings
have not changed.

- When value is changed and form is updated the updated value is shown in the
form, message is shown that configuration has been updated.

- Updated URL value reflects in the email app and errors change accordingly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Benedek Nagy <contact@nbenedek.me>
2025-01-13 21:30:06 +01:00

11 lines
308 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""Application manifest for privacy app."""
from django.utils.translation import gettext_lazy as _
from . import privileged
backup = {'config': {'files': [str(privileged.CONFIG_FILE)]}}
tags = [_('Usage reporting'), _('External services'), _('Fallback DNS')]