Ah! Thanks for the tip. That didn't cross my mind. Learning all the
time, I guess.
--~--~-~--~~~---~--~~
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
Why don't you:
{% if form.myText.text %}
My text: {{form.myText }}
{% else %}
No text yet.
{% endif %}
That will get a myText field passed in the post/get parameter.
Corey
On Aug 21, 2006, at 5:39 PM, cyberco wrote:
>
> Given the model:
> ===
>
Given the model:
===
myText = models.TextField(blank=True)
===
In case this TextField has no text I want to hide it from my form.
Template code:
===
{% if form.myText.text %}
3 matches
Mail list logo