should do the trick, thanks
On Apr 28, 7:49 pm, "Ronny Haryanto" <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 29, 2008 at 9:33 AM, skunkwerk <[EMAIL PROTECTED]> wrote:
> > I've got two forms included in my base template, from which a few
> > others inherit. Currently I'm passing a newly-constructed form to
> > each of the inherited templates in the functions using
> > render_to_response, like so:
>
> > return render_to_response('contact.html', {'form': form, 'suggform':
> > suggform, 'searchform':searchform })
>
> > it's getting tedious though... is there some way I can pass the forms
> > to only the base template, and have all the other inherited templates
> > get the forms too? the default forms are all static - no dynamic
> > values.
>
> Would a custom context processor work for
> you?http://www.djangoproject.com/documentation/templates_python/#subclass...
>
> Ronny
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---