#NEWLINE# def test_save_and_continue_editing_redirects_to_update( self ) : #NEWLINE# #INDENT# '\n        Tests that choosing "Save and continue editing" redirects\n        the user to the model update form.\n        ' #NEWLINE# post_data = { #NEWLINE# #INDENT# 'comments-TOTAL_FORMS' : '2' , #NEWLINE# 'comments-INITIAL_FORMS' : '0' , #NEWLINE# 'comments-MAX_NUM_FORMS' : '' , #NEWLINE# 'title' : 'Unique' , #NEWLINE# 'body' : 'a_post_body' , #NEWLINE# '_continue' : '' , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( reverse ( 'admin2:blog_post_create' ) , post_data ) #NEWLINE# post = Post . objects . get ( title = 'Unique' ) #NEWLINE# self . assertRedirects ( response , reverse ( 'admin2:blog_post_update' , args = ( post . pk , ) ) )