liuyang1520 / django-command-extensions

Automatically exported from code.google.com/p/django-command-extensions
MIT License
0 stars 0 forks source link

django r7722 breaks dumpscript #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Upgrade django trunk to r7722 or higher
2. Check out current trunk of django-command-extensions
2. Run ./manage.py dumpscript <appname>

What is the expected output? What do you see instead?

Should dump a Python-script version of the data in app <appname>.  Instead
raises an AttributeError: 'dict' object has no attribute 'add'

r7722 made seen_objs in _collect_sub_objects an instance of a
CollectedObjects class instead of a dictionary, and relies on the add()
method of CollectedObjects which a dict does not have.  dumpscript.py still
calls _collect_sub_objects() with a dictionary for the seen_objs argument.

Original issue reported on code.google.com by carl.j.meyer on 28 Jun 2008 at 7:28

GoogleCodeExporter commented 8 years ago
Patch to dumpscript.py attached, which fixes this problem.

Original comment by carl.j.meyer on 28 Jun 2008 at 7:29

Attachments:

GoogleCodeExporter commented 8 years ago
Committed a superior patch that works with Django revisions both before and 
after 7722.

Original comment by carl.j.meyer on 30 Jun 2008 at 4:16