'If `base_name` is not specified, attempt to automatically determine
it from the viewset.'

def get_default_base_name(self, viewset):

    queryset = getattr(viewset, u'queryset', None)
    assert (queryset is not None), u'`base_name`    argument    not    specified,    and    could    not    automatically    determine    the    name    from    the    viewset,    as    it    does    not    have    a    `.queryset`    attribute.'
    return queryset.model._meta.object_name.lower()
