Extracting fixture for one specific object
- by emostar
I want to extract the necessary code to recreate a set of Models from my production environment to my testing environment. There is something wrong in the data that causes an Exception, and I need the data in my local environment to do debugging.
I looked at django-extensions and the dumpscript command is almost what I want. But I have many other objects connected to this one via foreign keys.
Is there an easy way to extract the object by primary key, and all other objects that are related to it?