I have a Django form wizard working nicely for creating content of one of my models. I want to use the same Wizard for editing data of existing content but can\'t find a good ex
Addition to pxg's answer, get_form_instance should be like this, otherwise you won't be editing the model but create a new instance of it:
def get_form_instance(self, step):
if not self.instance:
if 'initial_id' in self.kwargs:
initial_id = self.kwargs['initial_id']
self.instance = Project.objects.get(id=initial_id)
else:
self.instance = Project()
return self.instance