Fix #5390 - Create migration to delete Notifications and fix Report
authorJessica Tallon <tsyesika@tsyesika.se>
Tue, 19 Jan 2016 09:17:12 +0000 (09:17 +0000)
committerJessica Tallon <tsyesika@tsyesika.se>
Wed, 20 Jan 2016 07:17:19 +0000 (07:17 +0000)
commit8de5a9319ae7553169fb51d368c5366d6f54fe14
treed7943405fd506c5945033ea3e7996783d2084d47
parent8b4645dfd4c8400a975ebd970ec46dff02182034
Fix #5390 - Create migration to delete Notifications and fix Report

When a user deleted media or other objects any notificationn objects or reports
would cause errors as the object doesn't exist anymore. This now removes them or
sets them to None as expected by the code. This also adds some code to the base
deletion code to make sure this happens when an object is deleted.
mediagoblin/db/base.py
mediagoblin/db/migrations/versions/101510e3a713_removes_graveyard_items_from_.py
mediagoblin/db/migrations/versions/8429e33fdf7_remove_the_graveyard_objects_from_.py [new file with mode: 0644]