Got it working, it was because I thought I had to pass the seach form
class as an argument to 'show_form'. That wasn't necessary. Taking a
step back from your work does wonders :-)
Thanks Alex
On Nov 26, 10:59 am, "Alex Koshelev" <[EMAIL PROTECTED]> wrote:
> Oh.. and what is the error you get?
Oh.. and what is the error you get?
On Wed, Nov 26, 2008 at 13:39, Alfonso <[EMAIL PROTECTED]> wrote:
>
> Thanks Alex,
>
> I'm attempting to go the inclusion tag route but having difficulty
> understanding how to get the form in place correctly.
>
> I've defind a simple form within forms.py:
>
>
Thanks Alex,
I'm attempting to go the inclusion tag route but having difficulty
understanding how to get the form in place correctly.
I've defind a simple form within forms.py:
class PropertySearch(forms.Form):
name = forms.CharField(max_length=100, initial="Property name or
Location")
and
You have to pass form instance to all pages context where it is used. You
can do it explicitly or write custom context processor or (the better
solution) write custom inclusion tag.
On Tue, Nov 25, 2008 at 20:13, Alfonso <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> I've put together a simple search fo
4 matches
Mail list logo