google-code-export / wadofstuff

Automatically exported from code.google.com/p/wadofstuff
1 stars 0 forks source link

manage.py dumpdata dosen't work in django 1.2 using full json serializer #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. set SERIALIZATION_MODULES to use "wadofstuff.django.serializers.json"
2. run "python manage.py dumpdata <app>"

No json string showed up but this red line:
Error: Unable to serialize database: __init__() got an unexpected keyword
argument 'use_natural_keys'

I'm using django svn version on a Mac.

Original issue reported on code.google.com by heyli...@gmail.com on 5 Mar 2010 at 10:10

GoogleCodeExporter commented 9 years ago
fixed by adding this line:
self.options.pop('use_natural_keys', None)
after line 19 in "serializers/json.py".

Original comment by heyli...@gmail.com on 5 Mar 2010 at 10:16

GoogleCodeExporter commented 9 years ago
Django 1.2 compatibility hasn't been officially released but is available in 
the SVN
version.

Original comment by mattimus...@gmail.com on 21 Mar 2010 at 10:00

GoogleCodeExporter commented 9 years ago
I am using the svn version of full serialization.

And there is a line lacking in serializers/json.py causing this problem.

Original comment by heyli...@gmail.com on 21 Mar 2010 at 11:12

GoogleCodeExporter commented 9 years ago
I'm can confirm that I'm experiencing the same issue and the fix in the 1st 
comment works. Looked for it in both trunk and tags and couldn't find a version 
with the fix

Original comment by zenji...@gmail.com on 23 Jul 2010 at 4:51

GoogleCodeExporter commented 9 years ago
Fixed in trunk [57]

Original comment by mattimus...@gmail.com on 30 Jul 2010 at 1:25