Skip to content

[bug] Fix FK reference issue when deleting user - #12675

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:user-delete-fix
Aug 21, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:user-delete-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Removes legacy tables which should have been deleted when we removed the "django-user-sessions" package. If the install still has this old table, it is removed in this migration

@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Aug 21, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed migration Data or schema migrations labels Aug 21, 2026
@netlify

netlify Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 27b4675
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a87bf7ac456960008376271

@codecov

codecov Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.78%. Comparing base (71787d4) to head (27b4675).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12675      +/-   ##
==========================================
- Coverage   86.78%   86.78%   -0.01%     
==========================================
  Files        1454     1455       +1     
  Lines       97443    97451       +8     
  Branches    11399    11399              
==========================================
+ Hits        84563    84568       +5     
- Misses      12814    12817       +3     
  Partials       66       66              
Flag Coverage Δ
backend 90.85% <87.50%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.23% <87.50%> (-0.01%) ⬇️
Backend General 93.74% <ø> (ø)
Frontend 79.62% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit 7fc36ac into inventree:master Aug 21, 2026
44 checks passed
@SchrodingersGat
SchrodingersGat deleted the user-delete-fix branch August 21, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed migration Data or schema migrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Cannot delete user (foreign key violation on session)

1 participant