Add ActivityIntermediator table and refactor some of Activity model
authorJessica Tallon <jessica@megworld.co.uk>
Wed, 27 Aug 2014 13:34:07 +0000 (14:34 +0100)
committerJessica Tallon <jessica@megworld.co.uk>
Wed, 27 Aug 2014 14:20:27 +0000 (15:20 +0100)
commitce46470c02371ff92db2c0412af97dfef33e58ee
tree1bd1d14f8d6442f7305bb9c9c2b21f1f3ede4111
parent1c15126819ed42b6572de8023962d7149fae6f03
Add ActivityIntermediator table and refactor some of Activity model

- This has introduced a intermediatory table between object/target and
  the activity. This allows for multiple activities to be associated
  with one object/target.
- This moves some of the methods off Activity model into a mixin which
  didn't need to interact with database things.
- This also cleaned up the migrations as well as adding retroactive
  creation of activities for collection creation.
mediagoblin/db/migrations.py
mediagoblin/db/mixin.py
mediagoblin/db/models.py