Skip to content

Commit 1935d3a

Browse files
committed
remove mutable objects in arguments
1 parent 44920a4 commit 1935d3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

simple_history/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ class HistoricalRecords(object):
3737

3838
def __init__(self, verbose_name=None, bases=(models.Model,),
3939
user_related_name='+', table_name=None, inherit=False,
40-
excluded_fields=[]):
40+
excluded_fields=None):
4141
self.user_set_verbose_name = verbose_name
4242
self.user_related_name = user_related_name
4343
self.table_name = table_name
4444
self.inherit = inherit
45+
if excluded_fields is None:
46+
excluded_fields = []
4547
self.excluded_fields = excluded_fields
4648
try:
4749
if isinstance(bases, six.string_types):

0 commit comments

Comments
 (0)