#NEWLINE# @ permission_required ( 'core.manage_shop' ) #NEWLINE# def manage_customer_taxes( request ) : #NEWLINE# #INDENT# 'Dispatches to the first customer_tax or to the add customer_tax form.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# customer_tax = CustomerTax . objects . all ( ) [ 0 ] #NEWLINE# url = reverse ( 'lfs_manage_customer_tax' , kwargs = { #NEWLINE# #INDENT# 'id' : customer_tax . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# url = reverse ( 'lfs_manage_no_customer_taxes' ) #NEWLINE# #UNINDENT# return HttpResponseRedirect ( url )