'Hosted apps: a URI to an external manifest.
Packaged apps: a URI to a mini manifest on m.m.o. If reviewer, the
mini-manifest behind reviewer auth pointing to the reviewer-signed
package.'

def get_manifest_url(self, reviewer=False):

    if self.is_packaged:
        if (reviewer and self.latest_version):
            version = self.latest_version
            return absolutify(reverse('reviewers.mini_manifest', args=[self.app_slug, version.id]))
        elif self.current_version:
            return absolutify(reverse('detail.manifest', args=[self.guid]))
        else:
            return ''
    else:
        return self.manifest_url
