Skip to content

fix integrity error in cms fixture#194

Open
piyushupadhyay19 wants to merge 1 commit intoapache:masterfrom
piyushupadhyay19:fix-logo-conflict
Open

fix integrity error in cms fixture#194
piyushupadhyay19 wants to merge 1 commit intoapache:masterfrom
piyushupadhyay19:fix-logo-conflict

Conversation

@piyushupadhyay19
Copy link

While running the following command:

python manage.py load_cms_data new_default_theme

the process failed with the following error:

django.db.utils.IntegrityError: Problem installing fixture: Could not load taggit.Tag(pk=14): (1062, "Duplicate entry 'logo' for key 'taggit_tag.name'")

This happened because the fixture tried inserting a tag with a duplicate name, violating the unique constraint in the taggit_tag table.

Fix:

Renamed the duplicate tag name
This fix removes a blocking issue from the project setup process

@lahirujayathilake

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant