(self, url=None, accessor=None, attrs=None, reverse_args=None)
arguments:
            url (callable): If supplied, the result of this callable will be used as ``href`` attribute.
            accessor (Accessor): if supplied, the accessor will be used to decide on which object
                ``get_absolute_url()`` is called.
            attrs (dict): Customize attributes for the ``<a>`` tag.
            reverse_args (dict, tuple): Arguments to ``django.urls.reverse()``. If dict, the arguments
                are assumed to be keyword arguments to ``reverse()``, if tuple, a ``(viewname, args)``
                or ``(viewname, kwargs)``
arguments:
            url (callable): If supplied, the result of this callable will be used as ``href`` attribute.
            accessor (Accessor): if supplied, the accessor will be used to decide on which object
                ``get_absolute_url()`` is called.
            attrs (dict): Customize attributes for the ``<a>`` tag.
            reverse_args (dict, tuple): Arguments to ``django.urls.reverse()``. If dict, the arguments
                are assumed to be keyword arguments to ``reverse()``, if tuple, a ``(viewname, args)``
                or ``(viewname, kwargs)``
arguments : url ( callable ) : If supplied the result of this callable will be used as href attribute . accessor ( Accessor ) : if supplied the accessor will be used to decide on which object get_absolute_url () is called . attrs ( dict ) : Customize attributes for the <a > tag . reverse_args ( dict tuple ) : Arguments to django . urls . reverse () . If dict the arguments are assumed to be keyword arguments to reverse () if tuple a ( viewname args ) or ( viewname kwargs )
def __init__(self, url=None, accessor=None, attrs=None, reverse_args=None):
        """
        arguments:
            url (callable): If supplied, the result of this callable will be used as ``href`` attribute.
            accessor (Accessor): if supplied, the accessor will be used to decide on which object
                ``get_absolute_url()`` is called.
            attrs (dict): Customize attributes for the ``<a>`` tag.
            reverse_args (dict, tuple): Arguments to ``django.urls.reverse()``. If dict, the arguments
                are assumed to be keyword arguments to ``reverse()``, if tuple, a ``(viewname, args)``
                or ``(viewname, kwargs)``
        """
        self.url = url
        self.attrs = attrs
        self.accessor = accessor

        if isinstance(reverse_args, (list, tuple)):
            viewname, args = reverse_args
            reverse_args = {"viewname": viewname}
            reverse_args["kwargs" if isinstance(args, dict) else "args"] = args

        self.reverse_args = reverse_args or {}
def __init__ ( self , url = None , accessor = None , attrs = None , reverse_args = None ) : self . url = url self . attrs = attrs self . accessor = accessor if isinstance ( reverse_args , ( list , tuple ) ) : viewname , args = reverse_args reverse_args = { "viewname" : viewname } reverse_args [ "kwargs" if isinstance ( args , dict ) else "args" ] = args self . reverse_args = reverse_args or { }