Re: Context Processor in Admin

2008-09-17 Thread Dana
Brian, thanks. I forgot to mention this project is using 0.96 (e). Thanks for the tip tho, ill use that in the future! On Sep 17, 3:27 pm, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > On Wed, Sep 17, 2008 at 3:11 PM, Dana <[EMAIL PROTECTED]> wrote: > > [...] > > > My issues is that I have used

Re: Context Processor in Admin

2008-09-17 Thread Dana
Never mind! Figured it out. Used a simple regular expression match to check which page it was on: if re.match(r'^/admin/story/story/\d+/$', request.path): .stuff here. Cheers On Sep 17, 2:11 pm, Dana <[EMAIL PROTECTED]> wrote: > Hello All! > > I am hitting a wall when trying to modi

Re: Context Processor in Admin

2008-09-17 Thread Brian Rosner
On Wed, Sep 17, 2008 at 3:11 PM, Dana <[EMAIL PROTECTED]> wrote: [...] > My issues is that I have used a context_processor to make the > "Resources" that are related to the "Story" usable in the templates, > but the context is being applied to all admin views (as is the nature > of context_process

Context Processor in Admin

2008-09-17 Thread Dana
Hello All! I am hitting a wall when trying to modify the admin interface. I have a model "Story" and on the "change_form.html" page in the admin interface, I would like to display a box on the right side that shows a model that has related content. I have created the other model ("Resources") and