easymode.urlsΒΆ

When get_absolute_url is defined on a model, django will place a view on site link in the change_view of the model.

If you are using easymode’s multilanguage features and especially LocaleFromUrlMiddleWare and LocaliseUrlsMiddleware you will find that the view on site link will not point to the correct (current) language.

The routes specified here will override the default admin routes and make the view on site link take the current language into account.

include the urls in your urlconf like this:

(r'^', include('easymode.urls')),

Previous topic

Injecting extra data into the XSLT

Next topic

easymode.i18n