|
|
@@ -282,11 +282,11 @@ class ObjectEditView(GetReturnURLMixin, ObjectPermissionRequiredMixin, View):
|
|
|
messages.success(request, mark_safe(msg))
|
|
|
|
|
|
if '_addanother' in request.POST:
|
|
|
- redirect_url = request.get_full_path()
|
|
|
+ redirect_url = request.path
|
|
|
|
|
|
# If the object has clone_fields, pre-populate a new instance of the form
|
|
|
if hasattr(obj, 'clone_fields'):
|
|
|
- redirect_url += f"{'&' if '?' in redirect_url else '?'}{prepare_cloned_fields(obj)}"
|
|
|
+ redirect_url += f"?{prepare_cloned_fields(obj)}"
|
|
|
|
|
|
return redirect(redirect_url)
|
|
|
|