Thanks patrickk, but the point is that I wish to use the standard change_form most of the time but, for some models I wish to use a tailored change_form. I can't see how, even using the template_loaders you're telling about, I could accomplish that.
patrickk wrote: > you donĀ“t have to tell the admin engine at all if you use this > template_loaders: > 'django.template.loaders.filesystem.load_template_source', > 'django.template.loaders.app_directories.load_template_source', > > just copy the change_form from the app_directory (django/contrib/ > admin/...) to your template_directory, > e.g. to /templates/app_name/model_name/change_form.html > > patrick > > Am 05.11.2006 um 17:50 schrieb Mario Graziosi: > > >> I wish to extend the standard admin "change_form": which is the >> best way >> to do it? >> >> The specific problem I need to solve is to find a workaround to a >> Django >> bug (Ticket #2522). I need to keep form header, footer and submit >> buttons and store my own stuff. I found this possible solution: >> 1. create my own copy of "change_form.html" >> 2. create a block for the piece of template I wish to extend/replace >> 3. create a new form which inherits from the "change_form.html" >> >> However, how do I tell to the admin engine that, for a given model, a >> form other than "change_form.html" should be used? I suspect the >> correct >> place to tell it is in urls.conf, but how should I change the line >> below >> to accomplish that? >> >> (r'^admin/', include('django.contrib.admin.urls')), >> >> >> >> >> >> > > > > > > -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/) Tel: 02 9350-4780 interno 101, Fax: 02 9139-0172 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---