Good workaround :) Adding it. Thanks On Aug 1, 12:05 pm, lokesh <slokesh...@gmail.com> wrote: > hi, > Use Javascript or jquery .reset() to clear the form fields . > Lokesh S > > On Aug 1, 1:41 pm, Reikje <reik.sch...@gmail.com> wrote: > > > Hi, > > > I am using django.Forms for a website. I have a text field which is > > not required. Every time it is posted, I do not retain what was > > entered in this field, i.e. it should be blank every time the page is > > rendered. What is the best way to archive this? Here is the form: > > > class SuggestionForm(forms.Form): > > suggested_name = forms.CharField(max_length=50, > > required=False, widget=forms.TextInput(attrs={'class': 'profile > > textfield'}))
-- 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.