rq / django-rq

A simple app that provides django integration for RQ (Redis Queue)
MIT License
1.81k stars 282 forks source link

Django dumpdata will fail because of unmanaged model #631

Open ronaldoldenburger opened 8 months ago

ronaldoldenburger commented 8 months ago

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 commented 7 months ago

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