def uninstall(request, oauth_id):
if request.method == 'DELETE':
app_name = request.resolver_match.app_name
if not app_name:
raise Exception('you must include the dach.urls with the app_name')
get_backend().delete(oauth_id)
post_uninstall.send(
apps.get_app_config(app_name),
oauth_id=oauth_id
)
logger.info('addon successfully uninstalled')
return HttpResponse(status=204)
return HttpResponseNotAllowed(['delete'])
评论列表
文章目录