def unwatch_approved(request): """Stop watching approved revisions.""" if request.locale not in settings.SUMO_LANGUAGES: raise Http404 ApproveRevisionInLocaleEvent.stop_notifying(request.user, locale=request.locale) return HttpResponse()
def unwatch_approved(request): """Stop watching approved revisions.""" if request.locale not in settings.SUMO_LANGUAGES: raise Http404 ApproveRevisionInLocaleEvent.stop_notifying(request.user, locale=request.locale) return HttpResponse()
def unwatch_approved(request): """Stop watching approved revisions.""" locale = request.POST.get('locale') if locale not in settings.SUMO_LANGUAGES: raise Http404 ApproveRevisionInLocaleEvent.stop_notifying(request.user, locale=locale) return HttpResponseRedirect(_get_next_url_fallback_localization(request))
def unwatch_approved(request): """Stop watching approved revisions.""" locale = request.POST.get('locale') if locale not in settings.SUMO_LANGUAGES: raise Http404 ApproveRevisionInLocaleEvent.stop_notifying(request.user, locale=locale) return HttpResponseRedirect(reverse('dashboards.localization'))
def unwatch_approved(request): """Stop watching approved revisions.""" locale = request.POST.get('locale') if locale not in settings.SUMO_LANGUAGES: raise Http404 ApproveRevisionInLocaleEvent.stop_notifying(request.user, locale=locale) return HttpResponseRedirect(_get_next_url_fallback_localization(request))
def unwatch_approved(request): """Stop watching approved revisions.""" locale = request.POST.get('locale') if locale not in settings.SUMO_LANGUAGES: raise Http404 ApproveRevisionInLocaleEvent.stop_notifying(request.user, locale=locale) return HttpResponseRedirect(reverse('dashboards.localization'))