Re: Initial values for ModelForms with additional fields

2008-04-18 Thread Malcolm Tredinnick
On Fri, 2008-04-18 at 11:47 -0400, Jay Wineinger wrote: > I realize that you can do it with initial. I was asking (unclearly, > evidently) if there would be any value to changing django to work in > that way. One way to do any given thing is enough. Your method isn't really anysaving in typin

Re: Initial values for ModelForms with additional fields

2008-04-18 Thread Jay Wineinger
I realize that you can do it with initial. I was asking (unclearly, evidently) if there would be any value to changing django to work in that way. Jay [EMAIL PROTECTED] wrote: > This question should be directed to django-users, this group is for > django development, not support. > > > > cla

Initial values for ModelForms with additional fields

2008-04-18 Thread shadfc
I posed this question on IRC and was told to direct it here because it might be "interesting". I created a ModelForm with additional fields which aren't present on the model. Now, I want to use this form to edit an instance of the model, but there doesn't seem to be a way set the additional fiel

Re: Initial values for ModelForms with additional fields

2008-04-18 Thread [EMAIL PROTECTED]
This question should be directed to django-users, this group is for django development, not support. class MyModel(models.Model): field_a = field_b = class MyModelForm(forms.ModelForm): field_c = ... class Meta: model = MyModel mymodel = MyModel() mymodel.fi