On Tue, Mar 22, 2011 at 2:31 AM, Kenneth Gonsalves
<law...@thenilgiris.com>wrote:

> on running this, I get a form with two fields, name and age. Which is
> what is wanted. So is there anything wrong in coding it this way? I am
> asking this because a co-worker submitted code like this and it is
> working, so I do not know how to react (apart from the obvious comment
> that the same code is being written twice)
>

Russ has already answered so I'm not going to repeat what he said. I'll
note, though, that there's some good doc on this (overriding default field
values in a model form) here:
http://docs.djangoproject.com/en/1.2/topics/forms/modelforms/#overriding-the-default-field-types-or-widgets

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-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.

Reply via email to