*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 21da0e6f authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Add "id" to the fake system entity

* previously, this property was missing from the fake entity which would
  trip up notification builders
parent c596d72a
No related branches found
No related tags found
1 merge request!87Notification-related bugfixes
......@@ -12,6 +12,7 @@ Changes
Version <next>
- Allow secondary email address to be removed again
- Add "id" to the fake entity created by `SystemEntityProxy._resolve()`
Version 2025.1.8 (released 2025-02-13)
......
......@@ -27,7 +27,11 @@ class SystemEntityProxy(EntityProxy):
Since this will mostly be used in Jinja templates, it being a dictionary
and not an actual object is fine.
"""
return {"username": "system", "user_profile": {"full_name": "System"}}
return {
"id": "system",
"username": "system",
"user_profile": {"full_name": "System"},
}
def pick_resolved_fields(self, identity, resolved_dict):
"""Select which fields to return when resolving the reference."""
......
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