• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openwisp / openwisp-firmware-upgrader / 30832389744

03 Aug 2026 04:29PM UTC coverage: 94.074% (+0.02%) from 94.057%
30832389744

push

github

web-flow
[change] Improved handling of cascade deletion #256

This change addresses an issue where deleting an organization was
blocked due to `UpgradeOperation` and `BatchUpgradeOperation` records.
The `BlockDeleteAllowCascadeMixin` from `openwisp_utils.admin` is now
used to correctly handle cascade deletions, allowing them when triggered
by a parent object or bulk actions, while still preventing deletion of
in-progress operations with a clear error message.

This change mirrors the implementation in openwisp-utils and
includes new unit tests to verify the permission logic for various
deletion scenarios.

Closes #256

---------

Co-authored-by: Federico Capoano <f.capoano@openwisp.io>

2270 of 2413 relevant lines covered (94.07%)

11.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.38
/admin.py


Build SHA Not Found

The commit SHA "9a7dd65468beaa267dc4b00ed4618643b6b7b4cf" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc