def watch_locale(request): """Start watching a locale for revisions ready for review.""" ReviewableRevisionInLocaleEvent.notify(request.user, locale=request.LANGUAGE_CODE) statsd.incr('wiki.watches.locale') # A 200 so jQuery interprets it as success return HttpResponse()
def watch_locale(request): """Start watching a locale for revisions ready for review.""" ReviewableRevisionInLocaleEvent.notify(request.user, locale=request.locale) statsd.incr('wiki.watches.locale') # A 200 so jQuery interprets it as success return HttpResponse()
def watch_locale(request): """Start watching a locale for revisions ready for review.""" ReviewableRevisionInLocaleEvent.notify(request.user, locale=request.locale) # This redirect is pretty bad, because you might also have been on the # Contributor Dashboard: return HttpResponseRedirect(_get_next_url_fallback_localization(request))
def watch_locale(request): """Start watching a locale for revisions ready for review.""" ReviewableRevisionInLocaleEvent.notify(request.user, locale=request.locale) # This redirect is pretty bad, because you might also have been on the # Contributor Dashboard: return HttpResponseRedirect(_get_next_url_fallback_localization(request))