Michel Thadeu Sabchuk wrote:
> I've done a custom tag to use on my templates and I ned to pass a
> variable to it, but this variable can or cannot exists. If the
> variable doesn't exists, I get an error telling that form.data doesn't
> have the key "city".
In your tag you can catch the exception
Hi guys!
I've done a custom tag to use on my templates and I ned to pass a
variable to it, but this variable can or cannot exists. If the
variable doesn't exists, I get an error telling that form.data doesn't
have the key "city".
To avoid this error I've done:
{% block body_onload %}
{% if
2 matches
Mail list logo