Collection changes and migration for federation
authorJessica Tallon <tsyesika@tsyesika.se>
Thu, 17 Sep 2015 11:47:56 +0000 (13:47 +0200)
committerJessica Tallon <tsyesika@tsyesika.se>
Wed, 7 Oct 2015 12:40:44 +0000 (14:40 +0200)
commit0f3bf8d4b180ffd1907d1578e087522aad7d9158
tree22279f7ff895047d1ec3c68bedb69a081cc0871a
parent80ba8ad1d1badb2f6330f25c540dc413e42e7d5c
Collection changes and migration for federation

- Adds a "type" column to the Collection object and allows the
CollectionItem model to contain any object.
- Changes "items" to "num_items" as per TODO
- Renames "uploader", "creator" and "user" to a common "actor" in most places
48 files changed:
mediagoblin/api/views.py
mediagoblin/db/__init__.py
mediagoblin/db/migrations.py
mediagoblin/db/mixin.py
mediagoblin/db/models.py
mediagoblin/db/util.py
mediagoblin/decorators.py
mediagoblin/edit/lib.py
mediagoblin/edit/views.py
mediagoblin/gmg_commands/batchaddmedia.py
mediagoblin/listings/views.py
mediagoblin/media_types/blog/views.py
mediagoblin/notifications/__init__.py
mediagoblin/notifications/tools.py
mediagoblin/plugins/api/tools.py
mediagoblin/plugins/archivalook/templates/archivalook/feature_media_sidebar.html
mediagoblin/plugins/archivalook/tools.py
mediagoblin/plugins/metadata_display/templates/mediagoblin/plugins/metadata_display/metadata_table.html
mediagoblin/plugins/piwigo/views.py
mediagoblin/submit/lib.py
mediagoblin/templates/mediagoblin/edit/attachments.html
mediagoblin/templates/mediagoblin/edit/edit.html
mediagoblin/templates/mediagoblin/edit/edit_collection.html
mediagoblin/templates/mediagoblin/fragments/header_notifications.html
mediagoblin/templates/mediagoblin/moderation/media_panel.html
mediagoblin/templates/mediagoblin/moderation/report.html
mediagoblin/templates/mediagoblin/user_pages/blog_media.html
mediagoblin/templates/mediagoblin/user_pages/collection.html
mediagoblin/templates/mediagoblin/user_pages/collection_confirm_delete.html
mediagoblin/templates/mediagoblin/user_pages/collection_item_confirm_remove.html
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/templates/mediagoblin/user_pages/media_collect.html
mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
mediagoblin/templates/mediagoblin/user_pages/report.html
mediagoblin/templates/mediagoblin/utils/collection_gallery.html
mediagoblin/templates/mediagoblin/utils/collections.html
mediagoblin/templates/mediagoblin/utils/comment-subscription.html
mediagoblin/templates/mediagoblin/utils/report.html
mediagoblin/templates/mediagoblin/utils/tags.html
mediagoblin/tests/test_api.py
mediagoblin/tests/test_misc.py
mediagoblin/tests/test_modelmethods.py
mediagoblin/tests/test_moderation.py
mediagoblin/tests/test_notifications.py
mediagoblin/tests/test_reporting.py
mediagoblin/tests/tools.py
mediagoblin/user_pages/lib.py
mediagoblin/user_pages/views.py