Skip to content

Commit

Permalink
Merge pull request etianen#969 from jeremy-engel/foreign-object-rel-i…
Browse files Browse the repository at this point in the history
…s-hidden

Switch call from removed is_hidden method to hidden property
  • Loading branch information
etianen authored Jun 15, 2024
2 parents a781656 + bcdeaa0 commit 6796b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reversion/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _reversion_introspect_inline_admin(self, inline):
):
fk_name = field.name
break
if fk_name and not inline_model._meta.get_field(fk_name).remote_field.is_hidden():
if fk_name and not inline_model._meta.get_field(fk_name).remote_field.hidden:
field = inline_model._meta.get_field(fk_name)
accessor = field.remote_field.get_accessor_name()
follow_field = accessor
Expand Down

0 comments on commit 6796b93

Please sign in to comment.