mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
upgrades: Add first boot step to configure backports
Closes: #1855. Tests: - On unstable, first boot step is not shown. Backports are not enabled. - On testing, tested enabling backports at first boot step. Backports are enabled. - On testing, tested not enabling backports. Backports are not enabled and can be activated later. - On testing, confirmed that functional tests can click through the first boot step. - On stable with backports, first boot step is not shown. Backports are enabled. - On stable, tested enabling backports at first boot step. Backports are enabled. - On stable, tested not enabling backports. Backports are not enabled and can be activated later. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> [sunil: Avoid two different i18n strings with almost same content] [sunil: Use box_name instead of hardcoded FreedomBox name] [sunil: Use consistent terminology 'activate' instead of 'enable'] [sunil: Rename the wizard, form, view, url for consistency with existing code] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
8 files changed
+145
-19
No files matched your search
@@ -12,3 +12,10 @@ class ConfigureForm(forms.Form):
|
||||
auto_upgrades_enabled = forms.BooleanField(
|
||||
label=_('Enable auto-update'), required=False, help_text=_(
|
||||
'When enabled, FreedomBox automatically updates once a day.'))
|
||||
|
||||
|
||||
class BackportsFirstbootForm(forms.Form):
|
||||
"""Form to configure backports during first boot wizard."""
|
||||
backports_enabled = forms.BooleanField(
|
||||
label=_('Activate frequent feature updates (recommended)'),
|
||||
required=False)
|
||||
Reference in new issue
Block a user