Skip to content

Commit

Permalink
fix: fix clean_fields concat set and lists
Browse files Browse the repository at this point in the history
  • Loading branch information
bnznamco committed Oct 6, 2022
1 parent 34abd77 commit 7a247c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hvad/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def clean_fields(self, exclude=None):
super().clean_fields(exclude=exclude)
translation = get_cached_translation(self)
if translation is not None:
translation.clean_fields(exclude=exclude + ['id', 'master', 'master_id', 'language_code'])
translation.clean_fields(exclude=type(exclude)([*exclude, 'id', 'master', 'master_id', 'language_code']))

def validate_unique(self, exclude=None):
super().validate_unique(exclude=exclude)
Expand Down

0 comments on commit 7a247c2

Please sign in to comment.