On 9 mar, 09:01, maciekjbl <maciej....@gmail.com> wrote:
> Hi,
>
> My problem is how can I separate two request on the same site. This
> situation is caused by text field in base template and form in another
> template which extends base.

(snip)
>
> My base template :
>  <form action="{% url promocje-search %}" method="get">
>   <a href="{% url promocje-list %}"> Strona G³ówna </a> &bull;
>   <lable for="q">Wyszukaj Producenta:</label> <input type="text"
> name="q">

Is that the full (relevant) code ? If yes, the closing </form> tag is
missing, and you don't have any submit in it (and <label> is
misspelled FWIW).


> My second template with form (lista_promocji):
>   <form action="" method="GET">

Better to specifiy the target url in the action attribute.

>         {{ promo.form.as_p }}

Are we supposed to guess what's in promo.form ?

>         <input type="submit" value="Filtruj" />
>     </form>
>
> Now when I try to use form to filter content it triggers input in base
> template

You mean "it submits the other form" ?

> and I get search view insted of filterd site.


Fix the above points first. If you still have problems, please post
the full generated HTML (or post a link to it).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to