I want to change the app index page so I add help text to the models themselves, e.g. under each model I want to add help text. I know that I should override AdminSite.app_index
. What is the best way to do this?
views:
54answers:
1
A:
The answer is very simple. I can create a new site object & use it everywhere instead of the existing site object.
# urls.py
from mysite.admin import myadmin
urlpatterns = patterns('',
(r'^admin/', include(myadmin.urls)),
)
# app/admin.py
myadmin.register(MyModel)
Mohammad Tayseer
2010-06-03 14:39:43