Skip to content
Snippets Groups Projects

Remove all paths on Element deletion

Merged Erwan Rouchet requested to merge delete-elementpath into master

It was not possible to remove Element instances due to the ElementPaths. The array of UUIDs describing the paths technically is an array of foreign keys, but is only defined as an array of UUIDs. This adds a Django signal to automatically remove those paths by calling remove_child on all the direct parents of an Element instance, and sets the element foreign key deletion mode to cascade. This allows to quickly remove an entire corpus using the Django admin for example, which is very useful during development.

Edited by Erwan Rouchet

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading