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

Problems with installing fixtures when running test suite #519

Open
hlovdahl opened this issue Mar 31, 2023 · 1 comment
Open

Problems with installing fixtures when running test suite #519

hlovdahl opened this issue Mar 31, 2023 · 1 comment

Comments

@hlovdahl
Copy link

Whenever I try to run my test suite I run into the following problem:

django.db.migrations.exceptions.NodeNotFoundError: Migration auditlog.0001_initial dependencies reference nonexistent parent node ('contenttypes', '0001_initial')

To fix the problem I changed auditlog/migrations/0001_initial.py:

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        # ("contenttypes", "0001_initial"),
        ("contenttypes", "__first__"),
    ]

Then the problem is gone. Could this be changed in the codebase?

@hramezani
Copy link
Member

Do you have django.contrib.contenttypes in your INSTALLED_APPS setting? If so, why you don't have the 0001_initial migration for contenttypes app?

BTW, ("contenttypes", "__first__") seems good to me

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

No branches or pull requests

2 participants