Re: custom manipulator in admin

2006-12-20 Thread Rob Slotboom
Hello Aidas, Exactly. You answered your question yourself. Seems I'm on the right way then :-) Thanks for anwering, I'll give it a try. Regards, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: custom manipulator in admin

2006-12-20 Thread Aidas Bendoraitis
Exactly. You answered your question yourself. Just override the existing urls putting them above the (r'^admin/', include('django.contrib.admin.urls')). For example: (r'^admin/yourapp/yourmodel/add/$', 'yourproject.yourapp.views.yourmodel_add'), (r'^admin/yourapp/yourmodel/(?P[0-9]+)/$', 'yourpr

Re: custom manipulator in admin

2006-12-20 Thread Rob Slotboom
On 20 dec, 10:54, "patrick k." <[EMAIL PROTECTED]> wrote: do it like in any other application: custom view, custom template, change urls Hi Patrick, That's exactely what I wanted to know for one exception. How to call the custom view when using admin.? By overriding the 'default' call: (r'^a

Re: custom manipulator in admin

2006-12-20 Thread patrick k.
do it like in any other application: custom view, custom template, change urls in the custom view, you could use a changemanipulator for your data and a dict for your additional data. for the template: just copy change_form.html and add your extra_data. the view looks like this: def custom_

custom manipulator in admin

2006-12-19 Thread Rob Slotboom
For a model I want to add a custom manipulator which can be used in the admin. With this manipulator I want to be able to add an extra formfield for displaying some additional data from a related object. There is no need for database storage. In this group I red that it isn't possible to extend