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

[Enhancement] Use verbose name of field for display purpose #426

Closed
rptmat57 opened this issue Sep 15, 2022 · 2 comments
Closed

[Enhancement] Use verbose name of field for display purpose #426

rptmat57 opened this issue Sep 15, 2022 · 2 comments

Comments

@rptmat57
Copy link
Contributor

A possible enhancement for the admin pages and the display str functions would be to try to find the verbose name of the field and use it (and even capitalize it):

try:
    field = logentry.content_type.model_class()._meta.get_field(field).verbose_name.capitalize()
except:
    pass

Just a thought.

@hramezani
Copy link
Member

Thanks @rptmat57 for proposing this.
Could you please provide a picture of the change on the admin page?
Do you want to prepare a patch for your suggestion?

@hramezani
Copy link
Member

Closed by d74c118

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

No branches or pull requests

2 participants