'Mini-manifest used for install/update on FxOS devices, in dict form.
It follows the Mozilla App Manifest format (because that\'s what FxOS
requires to install/update add-ons), *not* the Web Extension manifest
format.'

@property
def mini_manifest(self):

    if self.is_blocked():
        return {}
    try:
        version = self.latest_public_version
    except ExtensionVersion.DoesNotExist:
        return {}
    manifest = version.manifest
    mini_manifest = {'id': self.uuid, 'name': manifest['name'], 'package_path': version.download_url, 'size': version.size, 'version': manifest['version']}
    if ('author' in manifest):
        mini_manifest['developer'] = {'name': manifest['author']}
    if ('content_scripts' in manifest):
        mini_manifest['content_scripts'] = manifest['content_scripts']
    if ('description' in manifest):
        mini_manifest['description'] = manifest['description']
    return mini_manifest
