#NEWLINE# def _get_permission_url( self , user , customer , role ) : #NEWLINE# #INDENT# permission = User . groups . through . objects . get ( user = self . users [ user ] , group__customerrole__role_type = self . role_map [ role ] , group__customerrole__customer = self . customers [ customer ] ) #NEWLINE# return ( 'http://testserver' + reverse ( 'customer_permission-detail' , kwargs = { #NEWLINE# #INDENT# 'pk' : role . pk , #NEWLINE# #UNINDENT# } ) )