def METHOD_NAME(self, request, *args, **kwargs):
    instance = self.get_object()
    if instance.builtin:
        path = os.path.join(settings.APPS_DIR, 'terminal', 'applets', instance.name)
    else:
        path = default_storage.path('applets/{}'.format(instance.name))
    zip_path = shutil.make_archive(path, 'zip', path)
    with open(zip_path, 'rb') as f:
        response = HttpResponse(f.read(), status=200, content_type='application/octet-stream')
        response['Content-Disposition'] = 'attachment; filename*=UTF-8\'\'{}.zip'.format(instance.name)
    os.unlink(zip_path)
    return response