djangosnippets.org: Latest snippets posted by gsoltishttp://djangosnippets.org/users/gsoltis/2010-12-24T19:15:54.268156-06:00gsoltismodel instance to sql insert statement
2010-12-24T19:15:54.268156-06:00gsoltishttp://djangosnippets.org/snippets/2299/<p>This function will take a model instance and return an insert statement for it. I use it for extracting a subset of my production data so that I can reproduce problems in a local environment. The quoting is for mysql, you may have to change it depending on your db …</p>
Freely redistributable