#NEWLINE# def data_tab( request , voucher_group , template_name = 'manage/voucher/data.html' ) : #NEWLINE# #INDENT# 'Displays the data tab of the passed voucher group.\n    ' #NEWLINE# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# form = VoucherGroupForm ( instance = request , data = request . POST ) #NEWLINE# if form . is_valid ( ) : #NEWLINE# #INDENT# form = VoucherGroupForm ( instance = voucher_group ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# form = VoucherGroupForm ( instance = voucher_group ) #NEWLINE# #UNINDENT# return render_to_string ( template_name , RequestContext ( request , { #NEWLINE# #INDENT# 'voucher_group' : voucher_group , #NEWLINE# 'form' : form , #NEWLINE# #UNINDENT# } ) )