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 7d11b65 commit 5a7befe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extra_views/advanced.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from copy import copy

from django.contrib import messages
from django.forms.formsets import all_valid
from django.views.generic.base import ContextMixin
Expand Down Expand Up @@ -49,7 +47,7 @@ def get_inlines(self):
"""
Returns the inline formset classes
"""
return copy(self.inlines)
return self.inlines[:]

def forms_valid(self, form, inlines):
"""
Expand Down Expand Up @@ -193,7 +191,7 @@ def get_inlines_names(self):
"""
Returns a list of names of context variables for each inline in `inlines`.
"""
return copy(self.inlines_names)
return self.inlines_names[:]

def get_context_data(self, **kwargs):
"""
Expand Down

0 comments on commit 5a7befe

Please sign in to comment.