On Thu, Sep 16, 2010 at 10:55 PM, Brian Neal <bgn...@gmail.com> wrote:
> On Sep 16, 7:37 pm, Karen Tracey <kmtra...@gmail.com> wrote: > > > > Use this widget for the field: > > > > http://docs.djangoproject.com/en/1.2/ref/forms/widgets/#django.forms.... > > > > with render_value=False > > > Note that the docs indicate the default value for render_value is True > but in the code it is False: > > > http://code.djangoproject.com/browser/django/trunk/django/forms/widgets.py#L232 That was a recent change (http://code.djangoproject.com/changeset/13498) and is why I pointed to the 1.2 docs instead of the dev ones in answering. For anyone using an official release, it is necessary to pass render_value=False to get the desired behavior; for anyone using current trunk, it is not necessary but also not harmful. For a while it will be safest for anyone really desiring this behavior to pass render_value=False, that way the code will work as intended on both current and older levels of Django. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.