On Sun, Feb 24, 2008 at 11:02 PM, k4ml <[EMAIL PROTECTED]> wrote:
> Get the instance:-
> customer = Customer.objects.get(id=1)
>
> Create form instance and pass a dict of data from customer instance:-
> form = CustomerForm(initial=customer.__dict__) #instance of ModelForm
If you have a look a
I guess my use case is very common but somehow I can't find any
examples that did as what I want. I just want to provide a form to
edit an existing record so it supposed to be as simple as:-
Get the instance:-
customer = Customer.objects.get(id=1)
Create form instance and pass a dict of data fro
2 matches
Mail list logo