On Mon, Sep 1, 2008 at 10:24 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > Hmm perhaps I should do > > foo = Foo.objects.filter(pk=1) > foo_form = FooForm(instance=foo) > data = foo_form.cleaned_data
Or you could do what the form itself is doing, namely, using the function django.forms.models.model_to_dict(), which -- as the name implies -- takes a model object and spits back a dictionary whose keys are field names and whose values are the current values on that object. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---