|
|
@@ -329,9 +329,9 @@ class ObjectEditView(GetReturnURLMixin, BaseObjectView):
|
|
|
|
|
|
def get_extra_addanother_params(self, request, params):
|
|
|
"""
|
|
|
- Return a QueryDict of extra params to use on the Add Another button.
|
|
|
+ Return a dictionary of extra parameters to use on the Add Another button.
|
|
|
"""
|
|
|
- return params
|
|
|
+ return {}
|
|
|
|
|
|
#
|
|
|
# Request handlers
|
|
|
@@ -405,7 +405,7 @@ class ObjectEditView(GetReturnURLMixin, BaseObjectView):
|
|
|
|
|
|
# If cloning is supported, pre-populate a new instance of the form
|
|
|
params = prepare_cloned_fields(obj)
|
|
|
- params = self.get_extra_addanother_params(request, params)
|
|
|
+ params.update(self.get_extra_addanother_params(request))
|
|
|
if params:
|
|
|
if 'return_url' in request.GET:
|
|
|
params['return_url'] = request.GET.get('return_url')
|