Re: Multiple databases - unmanaged models - get_absolute_url()

2011-04-29 Thread David Chandek-Stark
I submitted a patch to the admin change form template -- http://code.djangoproject.com/ticket/15931. Meanwhile, you can temporarily get around the problem on a per-application basis by adding the attached file to the application package directory at templates/admin//change_form.html. --D --

Re: Multiple databases - unmanaged models - get_absolute_url()

2011-04-29 Thread David Chandek-Stark
OK, that's good. However, I don't really understand why the admin site employs such an extremely convoluted method here. If you follow the logic from the change form, here's what happens: if has_absolute_url (i.e., the object model has a "get_absolute_url" attribute) ... -> display "view on

Re: Multiple databases - unmanaged models - get_absolute_url()

2011-04-29 Thread Ramiro Morales
On Fri, Apr 29, 2011 at 2:18 PM, David Chandek-Stark wrote: > [...] >  Now, I think the problem > is that this method uses the database for the contenttypes app instead of > the alternate database > (see http://code.djangoproject.com/browser/django/tags/releases/1.3/django/contrib/contenttypes/mo