Re: NULL for TextField

2006-08-22 Thread cyberco
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

Re: NULL for TextField

2006-08-21 Thread Corey Oordt
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: > === >

NULL for TextField

2006-08-21 Thread cyberco
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 %}