(request, domain, app_id)
return HttpResponseRedirect(reverse(DomainDashboardView.urlname, args=[domain]))
Deletes an app from the database
Deletes an app from the database
Deletes an app from the database
def delete_app(request, domain, app_id):
    "Deletes an app from the database"
    app = get_app(domain, app_id)
    record = app.delete_app()
    messages.success(
        request,
        _('You have deleted an application. <a href="%s" class="post-link">Undo</a>')
        % reverse('undo_delete_app', args=[domain, record.get_id]),
        extra_tags='html'
    )
    app.save()
    clear_app_cache(request, domain)
    clear_xmlns_app_id_cache(domain)
    return HttpResponseRedirect(reverse(DomainDashboardView.urlname, args=[domain]))
def delete_app ( request , domain , app_id ) : app = get_app ( domain , app_id ) record = app . delete_app ( ) messages . success ( request , _ ( 'You have deleted an application. <a href="%s" class="post-link">Undo</a>' ) % reverse ( 'undo_delete_app' , args = [ domain , record . get_id ] ) , extra_tags = 'html' ) app . save ( ) clear_app_cache ( request , domain ) clear_xmlns_app_id_cache ( domain ) return HttpResponseRedirect ( reverse ( DomainDashboardView . urlname , args = [ domain ] ) )