bananas/admin/api/mixins.py
def reverse_action(self, url_name, *args, **kwargs):
        """
        Extended DRF with fallback to requested namespace if request.version is missing
        """
        if self.request and not self.request.version:
            return reverse(self.get_url_name(url_name), *args, **kwargs)

        return super().reverse_action(url_name, *args, **kwargs)
def reverse_action(self, url_name, *args, **kwargs):
        if self.request and not self.request.version:
            return reverse(self.get_url_name(url_name), *args, **kwargs)

        return super().reverse_action(url_name, *args, **kwargs)
def reverse_action ( self , url_name , * args , * * kwargs ) : if self . request and not self . request . version : return reverse ( self . get_url_name ( url_name ) , * args , * * kwargs ) return super ( ) . reverse_action ( url_name , * args , * * kwargs )
Extended DRF with fallback to requested namespace if request.version is missing
Extended DRF with fallback to requested namespace if request . version is missing