'Provide copy of visualization with only its latest revision.'

def copy(self, user=None, title=None):

    if (not user):
        user = self.user
    if (not title):
        title = self.title
    copy_viz = Visualization(user=user, type=self.type, title=title, dbkey=self.dbkey)
    copy_revision = self.latest_revision.copy(visualization=copy_viz)
    copy_viz.latest_revision = copy_revision
    return copy_viz
