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

@property
def obj(self):

    if self._addon_id:
        from mkt.webapps.models import Webapp
        return Webapp.with_deleted.get(pk=self._addon_id)
    elif self._extension_id:
        return self._extension
