How to access the verbose_name of a Model in its Admin Module? We can access the same if we have an instance of that model like below.
instance._meta.verbose_name.title()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Model._meta.verbose_name.title()and
Model._meta.verbose_name_plural.title()return singular and plural Model’s verbose names accordingly. There’s also
Model._meta.verbose_name_rawproperty, it seems to return unicode string for me, whileverbose_name.title()returns a normal string, but I’m not sure what’s the real difference between this andverbose_name.title().