Skip to content

[Bug] Missing migrations? #457

@Ash-Crow

Description

@Ash-Crow

Hi!

After updading the dependencies, including django-comments-xtd, the tests on my app fail with

raise InvalidBasesError(
django.db.migrations.exceptions.InvalidBasesError: Cannot resolve bases for [<ModelState: 'django_comments_xtd.XtdComment'>]
This can happen if you are inheriting models from an app with migrations (e.g. contrib.auth)

So I ran python manage.py makemigrations django_comments_xtd and it seems it is missing a migration, or it is not able to access the existing ones:

Migrations for 'django_comments_xtd':
  .venv/lib/python3.12/site-packages/django_comments_xtd/migrations/0001_initial.py
    + Create model BlackListedDomain
    + Create model XtdComment

(the tests ran fine after that)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions