Re: Passing filter parameters to admin's add view

2013-05-27 Thread Branko Majic
No problem, happens to me sometimes as well :) The only reason I thought there might be another way is that it feels a bit tedious, and I'd expect people need this kind of functionality quite often. I was wondering if there might be some sort of shortcut for it. I'll stick with the template overr

Re: Passing filter parameters to admin's add view

2013-05-27 Thread Derek
This may be a "red herring", but its also worth looking at how middleware handles things: http://www.b-list.org/weblog/2006/jun/13/how-django-processes-request/ On Saturday, 25 May 2013 17:53:00 UTC+2, Branko Majic wrote: > > Hello all, > > I've posted a similar question a couple of months ago,

Re: Passing filter parameters to admin's add view

2013-05-26 Thread Marc R
Sorry, didn't read to the bottom of your post :) Why would there be a better way than overriding the default template? that is the most efficient way and the power of frameworks. On Saturday, May 25, 2013 11:53:00 AM UTC-4, Branko Majic wrote: > > Hello all, > > I've posted a similar question

Re: Passing filter parameters to admin's add view

2013-05-26 Thread Marc R
override the template and change it accordingly (you can grab djangos as a starting point). Google for django admin template override. On Saturday, May 25, 2013 11:53:00 AM UTC-4, Branko Majic wrote: > > Hello all, > > I've posted a similar question a couple of months ago, but received no > a

Passing filter parameters to admin's add view

2013-05-25 Thread Branko Majic
Hello all, I've posted a similar question a couple of months ago, but received no answer. I'm repeating the question now, but hopefully making it a bit clearer on what I desire to achieve. Is there any way to have the admin app pass the currently set filter (GET prameters) to the "add view"? For