#NEWLINE# @ login_required #NEWLINE# def article_tags( request , category , id ) : #NEWLINE# #INDENT# if ( category == 'entry' ) : #NEWLINE# #INDENT# obj = Entry . objects . get ( pk = id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# obj = Draft . objects . get ( pk = id ) #NEWLINE# #UNINDENT# obj_tags = obj . tags . all ( ) #NEWLINE# tags = [ ( x , ( x in obj_tags ) ) for x in Tag . objects . all ( ) ] #NEWLINE# return render_to_response ( 'lifeflow/editor/article_tags.html' , { #NEWLINE# #INDENT# 'object' : obj , #NEWLINE# 'tags' : tags , #NEWLINE# 'model' : category , #NEWLINE# #UNINDENT# } , RequestContext ( request , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) )