'Returns the QuerySet containing all user messages (or ``None`` if
request.user is not a contrib.auth User).'

def _get_messages_queryset(self):

    user = getattr(self.request, 'user', None)
    if isinstance(user, User):
        return user._message_set.all()
