On Wed, Mar 5, 2008 at 1:34 PM, Evan H. Carmi <[EMAIL PROTECTED]> wrote: > > Russell Keith-Magee wrote: > > The only real solution at present is to avoid serializing content > > types whenever possible (i.e., by not dumping the contenttypes > > application). If your fixture already has content types, manually > > delete them from the fixture before loading. > > How can I go about manually deleting the content types? Is there > something I should look for in my file exported with dumpdata?
In an XML fixture, you are looking for any object that matches: <object pk="59" model="contenttypes.contenttype"> .... </object> (for any value of PK). Delete those objects (including all the tags inside the <object> tag pair), and you should be OK. Analogous structures exist for all the other serialization formats. The magic bit is 'model="contenttypes.contenttype" Yours Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---