Switch to unified view

a/Allura/allura/model/stats.py b/Allura/allura/model/stats.py
...
...
16
class CPA(ming.Document):
16
class CPA(ming.Document):
17
    class __mongometa__:
17
    class __mongometa__:
18
        session = main_doc_session
18
        session = main_doc_session
19
        name='content_production_activities'
19
        name='content_production_activities'
20
        indexes = [
20
        indexes = [
21
            'type', 'class_name', 'project_id', 'project_shortname', 'app_config_id', 'when', 'tool_name' ]
21
            'type', 'class_name', 'project_id', 'project_shortname', 'app_config_id', 'when', 'tool_name',
22
            ('tool_name', 'class_name')]
22
23
23
    @classmethod
24
    @classmethod
24
    def post(cls, type, obj):
25
    def post(cls, type, obj):
25
        d = dict(
26
        d = dict(
26
                type=type,
27
                type=type,