def METHOD_NAME(self, request, view):
    """
    Check if user has permissions to model assigned to view based on Django
    admin permissions. If view doesn't have model (queryset) assigned,
    permission is granted here.
    """
    try:
        queryset = view.get_queryset()
    except (AttributeError, TypeError):
        queryset = getattr(view, 'queryset', None)
    model_perms = True
    if queryset is not None:
        perms = self.get_required_permissions(
            request.method, queryset.model
        )
        model_perms = request.user.has_any_perms(perms)
    return model_perms