diff --git a/extra_views/advanced.py b/extra_views/advanced.py index 02a5702..cf89c6e 100644 --- a/extra_views/advanced.py +++ b/extra_views/advanced.py @@ -1,4 +1,4 @@ -from copy import deepcopy +from copy import copy from django.contrib import messages from django.forms.formsets import all_valid @@ -49,7 +49,7 @@ def get_inlines(self): """ Returns the inline formset classes """ - return deepcopy(self.inlines) + return copy(self.inlines) def forms_valid(self, form, inlines): """ @@ -193,7 +193,7 @@ def get_inlines_names(self): """ Returns a list of names of context variables for each inline in `inlines`. """ - return deepcopy(self.inlines_names) + return copy(self.inlines_names) def get_context_data(self, **kwargs): """