Where can I customize the title for the ModelAdmin view?

If I have a model named camel, for example DepartmentalSuperLeader ; the administrative view for this model has a title

 Departmental super leader 

I want to configure this name. Which method should be overridden?

0
source share
1 answer

You can use verbose_name in the Meta model its well documented , for example:

 class MyModel(Model): ..... class Meta: db_table = u"mytabel" verbose_name = "My Custom Name" 

This should show your model on the admin index page using the verbose_name set

+3
source

Source: https://habr.com/ru/post/897682/


All Articles