Skip to content

Commit ec80e4c

Browse files
author
Jan Schrewe
committed
Use a tuple in the last commit instead of a list
1 parent 36ce932 commit ec80e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongodbforms/documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def _post_clean(self):
407407

408408
# Call the model instance's clean method.
409409
original_fields = self.instance._fields_ordered
410-
to_check = [f for f in original_fields if f not in exclude]
410+
to_check = tuple([f for f in original_fields if f not in exclude])
411411
self.instance._fields_ordered = to_check
412412
try:
413413
self.instance.validate()

0 commit comments

Comments
 (0)