Comment changes for federation
authorJessica Tallon <tsyesika@tsyesika.se>
Tue, 20 Oct 2015 12:24:54 +0000 (12:24 +0000)
committerJessica Tallon <tsyesika@tsyesika.se>
Tue, 20 Oct 2015 12:24:54 +0000 (12:24 +0000)
commit64a456a4e50b03e4fa2b33ceb208e88d2e02fce7
treef60658eb937886dfd1cc349cab605c13a02942e5
parentfd703bb4d0665958d853b89f6069eefd8a8c8113
Comment changes for federation

This adds a new Comment link table that is used to link between some
object and then the comment object, which can be more or less any
object in Mediagoblin. The MediaComment has been renamed to
TextComment as that more aptly describes what it is. There is
migrations for these changes.

There is also the conslidation of the Report tables into a single
Report table, the same with the Notification objects. This is because
both of them split out MediaEntry and Comment versions into their own
polymorphic versions from a base, this is no longer a meaningful
distinction as comments can be anything.
26 files changed:
mediagoblin/api/views.py
mediagoblin/db/base.py
mediagoblin/db/migrations.py
mediagoblin/db/mixin.py
mediagoblin/db/models.py
mediagoblin/decorators.py
mediagoblin/moderation/tools.py
mediagoblin/moderation/views.py
mediagoblin/notifications/__init__.py
mediagoblin/notifications/task.py
mediagoblin/notifications/views.py
mediagoblin/submit/lib.py
mediagoblin/templates/mediagoblin/fragments/header_notifications.html
mediagoblin/templates/mediagoblin/moderation/report.html
mediagoblin/templates/mediagoblin/moderation/report_panel.html
mediagoblin/templates/mediagoblin/moderation/user.html
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/tests/test_api.py
mediagoblin/tests/test_misc.py
mediagoblin/tests/test_moderation.py
mediagoblin/tests/test_notifications.py
mediagoblin/tests/test_reporting.py
mediagoblin/tests/test_submission.py
mediagoblin/tests/tools.py
mediagoblin/user_pages/lib.py
mediagoblin/user_pages/views.py