'Returns either the add-on or extension depending on the type of the
thread.'

@property
def version(self):

    if self._version_id:
        from mkt.versions.models import Version
        return Version.with_deleted.get(pk=self._version_id)
    elif self._extension_version_id:
        return self._extension_version
