Switch to unified view

a/Allura/allura/model/artifact.py b/Allura/allura/model/artifact.py
...
...
503
        session = artifact_orm_session
503
        session = artifact_orm_session
504
        name='versioned_artifact'
504
        name='versioned_artifact'
505
        history_class = Snapshot
505
        history_class = Snapshot
506
506
507
    version = FieldProperty(S.Int, if_missing=0)
507
    version = FieldProperty(S.Int, if_missing=0)
508
    # Not null if artifact originated from external batch import
509
    import_id = FieldProperty(S.ObjectId, if_missing=None)
508
510
509
    def commit(self):
511
    def commit(self):
510
        '''Save off a snapshot of the artifact and increment the version #'''
512
        '''Save off a snapshot of the artifact and increment the version #'''
511
        self.version += 1
513
        self.version += 1
512
        data = dict(
514
        data = dict(