Django Dynamic Forms

I am using James Bennetts code to create a dynamic form. I have everything working but want to save the data to a database. Has anyone got any code which does this or could show me what the best way to do this would be e.g. how the model should be set up etc?


ANSWERS:


Override the save() method on your form class:

def save(self):
    new_user = User.objects.create_user(username=self.cleaned_data['username'],
                                        email=self.cleaned_data['email'],
                                        password=self.cleaned_data['password1'])
    return new_user

(taken from James Bennett's blog at Newforms, part 2)



 MORE:


 ? Javascript Array Key Retrieval
 ? Jquery Dynamic Form Elements - Problem
 ? How to create a dynamic xml which populates an advanced data grid in flex air application
 ? Javascript 2D array
 ? NSIS- How can I dynamically show a particular custom page?
 ? HTML5 Large canvas
 ? Is it possible to send message to dynamically constructed JMS/WS endpoint in Aqualogic Service Bus?
 ? Dynamic Template Sheet?
 ? C# Dynamic Code Analysis
 ? If I cannot use OnPreInit in Controls, how can I add my controls dynamically on the right time?