Error in django migrations

11 views
Skip to first unread message

Tobias Bäumlin

unread,
Jul 11, 2024, 7:14:06 AM7/11/24
to django-filer
Hi

Since the latest update of django-filer (3.1.1, I think) I get an error while doing django (version 4.2.14) migrations:

- makemigrations -> ok
- migrate -> ValueError: Found wrong number (0) of constraints for filer_folder(tree_id, lft)

Couldn't find anything helpful or specific on the web about this error.
I think it stems from the entry

    operations = [
        migrations.AlterIndexTogether(
            name='folder',
            index_together=set(),
        ),
 
in the migration file.

Any help greatly appreciated.
Tobias

Tobias Bäumlin

unread,
Jul 11, 2024, 7:17:14 AM7/11/24
to django-filer
Forgot to mention that the database runs on Postgres 16.3 under Ubuntu. In case this matters.
Reply all
Reply to author
Forward
0 new messages