diff --git a/apps/file/admin.py b/apps/file/admin.py index 5a2a1b0a..cb8e61d6 100644 --- a/apps/file/admin.py +++ b/apps/file/admin.py @@ -73,3 +73,6 @@ class FileUpdateView(UpdateView): template_name = 'c_admin/file/file_update.html' form_class = FileUpdateForm model = FileModel + + def get_success_url(self): + return reverse('file_update', args=[self.object.pk]) diff --git a/templates/c_admin/file/file_update.html b/templates/c_admin/file/file_update.html index 5b67905e..401b5b33 100644 --- a/templates/c_admin/file/file_update.html +++ b/templates/c_admin/file/file_update.html @@ -2,6 +2,7 @@ {% block body %}