Fixes: 1) Correct iteration over local_fields in translator options, replacing deprecated fields.keys().
This commit is contained in:
parent
c73a8957ed
commit
0d37b5b23b
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class I18NFieldsetMixin:
|
|||
|
||||
trans_opts = translator.get_options_for_model(self.model)
|
||||
translation_fields = []
|
||||
for orig in trans_opts.fields.keys(): # noqa: SIM118
|
||||
for orig in trans_opts.local_fields:
|
||||
translation_fields.extend(get_translation_fields(orig))
|
||||
|
||||
cleaned = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue