def METHOD_NAME(self, request, queryset):
    # 1. user email should be verified
    # 2. we can accept previously declined users
    acceptable = (
        Q(email_address__is_verified=True)
        & Q(is_active=False)
        & (Q(approved=False) | Q(approved=None))
    )
    users = queryset.filter(acceptable).all()
    for user in users:
        email_utils.send_email(
            from_email=settings.DEFAULT_FROM_EMAIL,
            recipient_list=[user.email],
            subject="IntelOwl - Your account has been successfully activated!",
            template_name="authentication/emails/account-activated",
            context={
                "full_name": user.get_full_name(),
                "username": user.get_username(),
                "host_uri": settings.HOST_URI,
                "host_name": settings.HOST_NAME,
                "default_email": settings.DEFAULT_EMAIL,
            },
        )
    number_updated = users.update(is_active=True, approved=True)
    self.message_user(
        request,
        ngettext(
            "%d user was successfully activated.",
            "%d users were successfully activated.",
            number_updated,
        )
        % number_updated,
        messages.SUCCESS,
    )