Opened 17 years ago

Closed 17 years ago

#7563 closed (wontfix)

A change in db\models\base.py is not compatible with the dumpscript command extension.

Reported by: stp2007 <stp2007@…> Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords: dumpscript command extension
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

A change in db\models\base.py is not compatible with the dumpscript command extension.

Revision 7642 of db\models\base.py at line 379 was:

if pk_val in seen_objs.setdefault(self.__class__, {}):
    return

Current version is:

if seen_objs.add(self.__class__, pk_val, self, parent, nullable):
    return

This causes dumpscript to generate a " 'dict' object has no attribute 'add'" error because it passes in an empty dict to _collect_sub_objects

Change History (1)

comment:1 by Russell Keith-Magee, 17 years ago

Resolution: wontfix
Status: newclosed

It seems to me that this is a problem with dumpscript, not with Django. The line of code you are referring to is an internal part of Django, and not part of documented API. If the change in [7642] breaks an external script, that's a pity, but it isn't really a problem with Django itself. This should be reported to whoever is maintaining dumpscript.

Note: See TracTickets for help on using tickets.
Back to Top