Skip to content

Wrong manager when using call_command('dumpdata') in stead of python manage.py dumpdata #146

@svleeuwen

Description

@svleeuwen

I'm using django.core.management.call_command('dumpdata') directly to export data dynamically. This should use the base_objects. It won't because it's only used when django/core/management/commands/dumpdata.py is in the stack, which is a bit hacky. (https://github.com/chrisglass/django_polymorphic/blob/master/polymorphic/base.py#L244)

I would be happy to help and fix this myself but maybe you could guide me how.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions