#13308 closed (fixed)
dumpdata doesn't honor router information
Description ¶
Reported by wizard_2/Francis on django-users:
loaddata uses router.allow_syncdb() to determine whether an object should be loaded from a fixture. dumpdata, however, doesn't do the same when outputting a fixture. This can lead to "Table doesn't exist" database errors when a router indicates that a specific model shouldn't be available on a given database, but dumpdata tries to dump the model anyway.
Change History (3)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [12940]) Fixed #13308 -- Ensured that dumpdata correctly interacts with router allow_syncdb directions. Thanks to Francis (wizard_2) for the report.