stephenmcd/django-forms-builder — Issue #49: Not able to prepopulate an existing form entry
Author: georgema1982
Created: 2012-02-17 22:58:15+00:00
State: open

There are cases when I want to edit an existing form entry. But looks like FormForForm(form, instance = entry) isn't able to populate the form entry with its field entry values. When I use FormForForm, it's always like a new entry.

I think the problem is in its __init__ function, it always set the initial to be a field's default value. I think __init__ function should be smarter. It should fetch every field entry of the form entry and populate the FormForForm's initial field if instance parameter is set.