#NEWLINE# @ permission_required ( 'core.manage_shop' ) #NEWLINE# def products_tab( request , discount_id , template_name = 'manage/discounts/products.html' ) : #NEWLINE# #INDENT# 'Renders the products tab of the property groups management views.\n    ' #NEWLINE# discount = Discount . objects . get ( pk = discount_id ) #NEWLINE# inline = products_inline ( request , discount_id , as_string = True ) #NEWLINE# return render_to_string ( template_name , RequestContext ( request , { #NEWLINE# #INDENT# 'discount' : request , #NEWLINE# 'products_inline' : inline , #NEWLINE# #UNINDENT# } ) )