Commit 63edb678 authored by Joseph Nuthalapati's avatar Joseph Nuthalapati Committed by James Valleroy

backups: Support multiple backups in one day

Signed-off-by: Joseph Nuthalapati's avatarJoseph Nuthalapati <>
parent 229dd31a
......@@ -18,7 +18,8 @@
Views for the backups app.
from datetime import date
from datetime import datetime
from django.contrib import messages
from django.contrib.messages.views import SuccessMessageMixin
from django.http import Http404
......@@ -30,7 +31,6 @@ from urllib.parse import unquote
from plinth.modules import backups
from .backups import _list_of_all_apps_for_backup
from .forms import CreateArchiveForm, ExportArchiveForm
......@@ -68,7 +68,8 @@ class CreateArchiveView(SuccessMessageMixin, FormView):
def get_initial(self):
"""Return the initial data to use for forms on this view."""
initial = super().get_initial()
initial['name'] = 'FreedomBox_backup_' + str(
initial['name'] = 'FreedomBox_backup_' +
return initial
def form_valid(self, form):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment