Overriding module header names in django admin

By default, admin models are grouped in the application, and the application name is in the header (accounts, auth, etc.). How to override the name in the header without writing admin templates?

0
django django-admin customization
source share
3 answers

Currently django does not provide an easy way to do this. See this ticket .

+1
source share

You can easily accomplish this with the app_label and db_table metadata options.

class model_module1(models.model): [...] class Meta: app_label = "Cool module name" db_table = "module1_model" class model_module2(models.model): [...] class Meta: app_label = "Cool module name" db_table = "module2_model" 

If you configure the table names correctly, you will see how your modules are grouped under the new label in admin.

Link: http://docs.djangoproject.com/en/dev/ref/models/options/#app-label

+7
source share

This may help a little. You can change how applications are grouped, although I don't think you can change the name of the application:

Django-Grappelli

http://code.google.com/p/django-grappelli/

0
source share

All Articles