views:

230

answers:

3

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

+1  A: 

At the moment, django doesn't provide any easy way to do this. See this ticket.

af
A: 

This may help somewhat. You can change how the apps are grouped, although I don't think you can change the app name:

django-grappelli

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

Douglas
+1  A: 

You can easily doing it through the metadata options app_label and db_table

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 tables names correctly you will see how your modules get grouped under the new label in the admin.

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

MrM