I have a (GoogleAppEngine) Django ModelForm:
class A(db.Model):
a = db.StringProperty()
class MyAForm(djangoforms.ModelForm):
class Meta:
model = A
This creates a form which has one string field a
. On my form I'd like to call this something else, say b
. So I'd like a form with a field called b
and when the form is POSTed we create a new A entity with the a
property filled with the b
-value.
Is there a neat way to do the plumbing for this?
(p.s. I don't want to change the underlying model)