@register.inclusion_tag('inclusion.html')
def inclusion_unlimited_args_kwargs(one, two='hi', *args, **kwargs):
 sorted_kwarg = sorted(six.iteritems(kwargs), key=operator.itemgetter(0))
 return {'result': ('inclusion_unlimited_args_kwargs - Expected result: %s / %s' % (', '.join([six.text_type(arg) for arg in ([one, two] + list(args))]), ', '.join([('%s=%s' % (k, v)) for (k, v) in sorted_kwarg])))}

@ register . inclusion_tag ( 'inclusion.html' ) def inclusion_unlimited_args_kwargs ( one , two = 'hi' , * args , ** kwargs ) : sorted_kwarg = sorted ( six . iteritems ( kwargs ) , key = operator . itemgetter ( 0 ) ) return { 'result' : ( 'inclusion_unlimited_args_kwargs - Expected result: %s / %s' % ( ', ' . join ( [ six . text_type ( arg ) for arg in ( [ one , two ] + list ( args ) ) ] ) , ', ' . join ( [ ( '%s=%s' % ( k , v ) ) for ( k , v ) in sorted_kwarg ] ) ) ) }
expected inclusion_unlimited_args_kwargs __doc__ .