#NEWLINE# @ membership_required #NEWLINE# def topic_remove( request , slug , topic_id , template_name = 'groups/topics/topic_remove_confirm.html' ) : #NEWLINE# #INDENT# '\n    Returns a group topic delete confirmation page.\n\n    Templates: ``groups/topics/topic_remove_confirm.html``\n    Context:\n        topic\n            GroupTopic object\n    ' #NEWLINE# group = get_object_or_404 ( Group , slug = slug ) #NEWLINE# topic = get_object_or_404 ( GroupTopic , pk = topic_id , group = group , user = request . user ) #NEWLINE# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# topic . is_active = False #NEWLINE# topic . save ( ) #NEWLINE# return redirect ( template_name , group ) #NEWLINE# #UNINDENT# return render ( request , template_name , { #NEWLINE# #INDENT# 'topic' : topic , #NEWLINE# #UNINDENT# } )