backups: Rename the backups API module

- Also other minor refactoring.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2018-10-03 19:18:43 -04:00
1 parent d48ab72cf0
commit 0ce97005b2
13 files changed
+22 -23

No files matched your search

+2 -2
View File
@@ -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]