Implement User.delete() (#540)
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 28 Nov 2012 14:46:40 +0000 (15:46 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 17 Jan 2013 10:48:49 +0000 (11:48 +0100)
commit03b4fc500cf490fb56b6dba8507d560dffcd2a8b
tree0f2fdfad991048a61586edb1cdb220737f3ec925
parent242776e3637e886c510cd39d4d6195932bb973cd
Implement User.delete() (#540)

Set User.collections to her Collections using the backref feature.
This way we can iterate a user's collections and delete them all.

Delete all MediaEntries/Files/attachments/comments/collections etc
before finally deleting the User object. This is the backend work for
issue 302 (allow a user to delete ones own account)
mediagoblin/db/models.py