def process_comment_notifications(
user_list: QuerySet[User] | list[User],
comment_information: str,
related_obj: Model,
user_commenting: User
) -> None:
from django.contrib.sites.models import Site
from django_spire.notification.models import Notification
for user in user_list:
if user != user_commenting:
Notification.create(
email=user.email,
title='New Comment',
body=f'You were tagged in a new comment! {user_commenting.get_full_name()} wrote "{comment_information}" on {related_obj}.',
url=Site.objects.get_current()
)