Dumped data python manage.py dumpdata --format json --indent 4 --exclude auth.permission --exclude contenttypes > app/fixtures/app_test_data.json
Running python manage.py test app, I get the following error:
IntegrityError: Problem installing fixtures: The row in table 'django_admin_log' with primary key '517' has an invalid foreign key: django_admin_log.content_type_id contains a value '28' that does not have a corresponding value in django_content_type.id.
Any ideas? I've had a lot of similar issues using dumpdata/Django's test-runner.
'django_admin_log'
beforecontent_type
is created resulting in a broken relationship. You can try to reorder how the fixtures are being created to fix this. – Kiyokokiyoshi