aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/migration_tools.py
diff options
context:
space:
mode:
authorJessica Tallon <tsyesika@tsyesika.se>2016-01-19 09:17:12 +0000
committerJessica Tallon <tsyesika@tsyesika.se>2016-01-20 07:17:19 +0000
commit8de5a9319ae7553169fb51d368c5366d6f54fe14 (patch)
treed7943405fd506c5945033ea3e7996783d2084d47 /mediagoblin/db/migration_tools.py
parent8b4645dfd4c8400a975ebd970ec46dff02182034 (diff)
downloadmediagoblin-8de5a9319ae7553169fb51d368c5366d6f54fe14.tar.lz
mediagoblin-8de5a9319ae7553169fb51d368c5366d6f54fe14.tar.xz
mediagoblin-8de5a9319ae7553169fb51d368c5366d6f54fe14.zip
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.
Diffstat (limited to 'mediagoblin/db/migration_tools.py')
0 files changed, 0 insertions, 0 deletions