Fix #5382 - Add migration and fix so tombstones are removed from collections
commiteebd0063feb19ea696f632dbb60588f0591c037b
authorJessica Tallon <tsyesika@tsyesika.se>
Tue, 12 Jan 2016 11:41:21 +0000 (12 11:41 +0000)
committerJessica Tallon <tsyesika@tsyesika.se>
Fri, 15 Jan 2016 09:20:15 +0000 (15 09:20 +0000)
treedc86a6276ec094f5c3e20dcc9e0a86b0f91f31c4
parentc17f755eeaf9447ecae3e32b9602ec19633f5108
Fix #5382 - Add migration and fix so tombstones are removed from collections

When an item is deleted it should be removed from all collections, this commit
makes that happen. It's got two changes:

1. Adds the code so when an object is soft deleted, it's automatically removed from
   all collection items
2. Add a migration to fix this issue for those who have tombstones (Graveyard objects)
   in their collections because of this bug.

This commit requires you to run a migration
mediagoblin/db/base.py
mediagoblin/db/migrations/versions/101510e3a713_removes_graveyard_items_from_.py [new file with mode: 0644]