Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django dumpdata will fail because of unmanaged model #631

Open
ronaldoldenburger opened this issue Nov 22, 2023 · 1 comment
Open

Django dumpdata will fail because of unmanaged model #631

ronaldoldenburger opened this issue Nov 22, 2023 · 1 comment

Comments

@ronaldoldenburger
Copy link

ronaldoldenburger commented Nov 22, 2023

When dumping data in django (manage.py dumpdata) an error will occur:

CommandError: Unable to serialize database: (1146, "Table 'xxx.django_rq_queue' doesn't exist")

This is because the django-rq has a model with managed = False, this will make Django think the table does exists, but was not created by itself.

For now ignoring the django_rq app during dumpdata will work:
./manage.py dumpdata -e django_rq

Relevant other issues: #552

@selwin
Copy link
Collaborator

selwin commented Nov 26, 2023

I'd welcome a PR to fix this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants