aboutsummaryrefslogtreecommitdiff
path: root/app/views/packages.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/packages.py')
-rw-r--r--app/views/packages.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/packages.py b/app/views/packages.py
index 460864c..308b3b4 100644
--- a/app/views/packages.py
+++ b/app/views/packages.py
@@ -266,10 +266,6 @@ def create_edit_editrequest_page(package, id=None):
if erequest.package != package:
abort(404)
- from copy import copy
- edited_package = copy(package)
- erequest.applyAll(edited_package)
-
if not erequest.checkPerm(current_user, Permission.EDIT_EDITREQUEST):
abort(403)
@@ -277,6 +273,9 @@ def create_edit_editrequest_page(package, id=None):
flash("Can't edit EditRequest, it has already been merged or rejected", "error")
return redirect(erequest.getURL())
+ edited_package = Package(package)
+ erequest.applyAll(edited_package)
+
form = EditRequestForm(request.form, obj=edited_package)
if request.method == "POST" and form.validate():