Skip to content

Commit

Permalink
Update advanced.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CleitonDeLima authored Aug 12, 2021
1 parent 5bb2378 commit 7d11b65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extra_views/advanced.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from copy import deepcopy
from copy import copy

from django.contrib import messages
from django.forms.formsets import all_valid
Expand Down Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit 7d11b65

Please sign in to comment.