Skip to content

Fix 132 nominee fk conflict#147

Merged
jbriones1 merged 9 commits into
mainfrom
fix_132_nominee-fk-conflict
May 30, 2026
Merged

Fix 132 nominee fk conflict#147
jbriones1 merged 9 commits into
mainfrom
fix_132_nominee-fk-conflict

Conversation

@kathryntanardy
Copy link
Copy Markdown
Contributor

Close #132

Issue: Deleting an election failed when nominees still had applications for it.

Cause: Due to Computing ID being a foreign key in election_nominee_application the delete fails.

Fix: Catch IntegrityError on delete and return 409 Conflict when dependent applications exist.

Copy link
Copy Markdown
Contributor

@jbriones1 jbriones1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@jbriones1 jbriones1 merged commit 3683ffd into main May 30, 2026
3 checks passed
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.

Deleting a Nominee with a Candidate fails

2 participants