@permission_required('questions.tag_question')
@require_POST
def remove_tag_async(request, question_id):
 name = request.POST.get('name')
 if name:
  question = get_object_or_404(Question, pk=question_id)
  question.tags.remove(name)
  question.clear_cached_tags()
  return HttpResponse('{}', content_type='application/json')
 return HttpResponseBadRequest(json.dumps({'error': unicode(NO_TAG)}), content_type='application/json')

@ permission_required ( 'questions.tag_question' ) @ require_POST def remove_tag_async ( request , question_id ) : name = request . POST . get ( 'name' ) if name : question = get_object_or_404 ( Question , pk = question_id ) question . tags . remove ( name ) question . clear_cached_tags ( ) return HttpResponse ( '{}' , content_type = 'application/json' ) return HttpResponseBadRequest ( json . dumps ( { 'error' : unicode ( NO_TAG ) } ) , content_type = 'application/json' )
remove a tag from question .