Skip to content
Snippets Groups Projects
Verified Commit e6ab6837 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix notification generation

parent 9a34ef22
No related branches found
No related tags found
1 merge request!152Overview of all register objects
Pipeline #6348 passed
......@@ -34,16 +34,17 @@ def send_request_to_check_entry(modeladmin, request: HttpRequest, selected_items
date = entry["date"]
msg += f"- {reg_object} ({date})\n"
Notification.objects.create(
n = Notification(
title=title,
description=msg,
sender=request.user.person.addressing_name,
recipient=teacher,
link=request.build_absolute_uri(reverse("overview_me")),
)
n.save()
count_teachers = len(grouped_by_teachers.keys())
count_items = len(list)
count_items = len(selected_items)
messages.success(
request,
_(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment