Add public_id fixes throughout the code
authorJessica Tallon <tsyesika@tsyesika.se>
Wed, 7 Oct 2015 11:13:40 +0000 (13:13 +0200)
committerJessica Tallon <tsyesika@tsyesika.se>
Wed, 7 Oct 2015 13:07:54 +0000 (15:07 +0200)
commitd216d771f662fc3e0a3417ce06e8355abce99988
tree7502682047ad22ec40d13d18ffb84a284d1e92ac
parentbc75a6532712e4b9b0f6d8b5bbd93db3ef58335d
Add public_id fixes throughout the code

This adds several things, mainly code which checks for the public id and
if it doesn't exist generating it where it can. This is to because we
need to keep the public_id to be able to effectively soft delete models.

This also adds a public_id field to the Activity along with a migration.
mediagoblin/api/views.py
mediagoblin/db/migrations.py
mediagoblin/db/mixin.py
mediagoblin/db/models.py
mediagoblin/submit/lib.py
mediagoblin/tests/test_submission.py
mediagoblin/user_pages/views.py