Add Graveyard model
authorJessica Tallon <tsyesika@tsyesika.se>
Thu, 1 Oct 2015 13:59:20 +0000 (15:59 +0200)
committerJessica Tallon <tsyesika@tsyesika.se>
Wed, 7 Oct 2015 12:40:44 +0000 (14:40 +0200)
commitbc75a6532712e4b9b0f6d8b5bbd93db3ef58335d
tree00cf85c4b4f7ab9ce6eb85d4017a202c730b2384
parent30852fda1c119e6031914b983920898cd57d5aa9
Add Graveyard model

This adds the Graveyard model which is used when a model is deleted, it
stores the important "shell" information on the model so it can
hard-delete the real object. It also remaps the GenericModelReference
references to the new Graveyard model.

This also moves the soft deletion setting from __model_args__ to
"deletion_mode" on the model.
mediagoblin/db/base.py
mediagoblin/db/migrations.py
mediagoblin/db/models.py