hi

assume a model:

Mymodel
name=CharField
age = IntegerField

and a ModelForm:

Mymodelform(forms.ModelForm):
        name = forms.CharField()
        age = forms.IntegerField()
        class Meta:
                model = Mymodel

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)
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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