Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make verbose_field_name also work for rels without related_name #1377

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edrik
Copy link

@edrik edrik commented May 7, 2021

Addresses #1089 by also trying the related_model._meta.verbose_name if there is not related_name.

Would probably be more correct to always use the related_model._meta.verbose_name considering that the related_name is not a translatable and needs additional mangling to remove _, but this addition would be backwards compatible and only fix the failing case.

@carltongibson
Copy link
Owner

Hi. Thanks for the input. This needs tests showing that the issue is addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants