from dojango import forms
import django.forms
class MyModelForm(forms.ModelForm):
dojango_field = forms.CharField()
django_field = django.forms.CharField()
sure you can do that. The only thing I would do different is the
import:
from dojango import forms
from django import forms as normal_forms
But you have to care, that the normal model-field to form-field
mapping within dojango.forms.ModelForm is different to
django.forms.ModelForm. In the case of dojango.forms.ModelForm it is
mapping each model-field to a dojango form-field/widget, but you can
easily overwrite the fields where you want to use a different form
field (as you did in your example).
Another note: if you use a ModelForm you also have to define a Meta
class where you assign a model to the form.
Regards, Tobias
By the way, I noticed my emails about updates in this group are in
German. Not that I'm complaining (I like it: I'm learning German at
my high school), but is that me, or is it supposed to happen?
Wiiboy schrieb:
if you look at the google website of this group in "about this
group/�ber diese gruppe" the language is specified as
Sprache Deutsch
maybe its a group-wide spec, Tobias would you change that?
Regards/Sch�nen Gru�
Julian