mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
backups: Rename the backups API module
- Also other minor refactoring. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
d48ab72cf0
commit
0ce97005b2
13 files changed
+22
-23
No files matched your search
@@ -25,7 +25,7 @@ from django.core import validators
|
||||
from django.core.validators import FileExtensionValidator
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from . import backups as backups_api
|
||||
from . import api
|
||||
from . import get_export_locations, get_archive_path, get_location_path
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class CreateArchiveForm(forms.Form):
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Initialize the form with selectable apps."""
|
||||
super().__init__(*args, **kwargs)
|
||||
apps = backups_api.get_all_apps_for_backup()
|
||||
apps = api.get_all_apps_for_backup()
|
||||
self.fields['selected_apps'].choices = [
|
||||
(app[0], app[1].name) for app in apps]
|
||||
self.fields['selected_apps'].initial = [app[0] for app in apps]
|
||||
|
||||
Reference in new issue
Block a user