@staticmethod
def get_revision_form_data(request, obj, version):
    """
        Returns a dictionary of data to set in the admin form in order to revert
        to the given revision.
        """
    data = version.field_dict
    content_version = version.revision.version_set.all().get(content_type=
        obj.content_type_id, object_id=obj.pk)
    data.update(content_version.field_dict)
    return data
