SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit bd6c19f4 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Personalize notifications

parent 3e5c0572
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ def live_notification_list(request): ...@@ -123,7 +123,7 @@ def live_notification_list(request):
struct = model_to_dict(n) struct = model_to_dict(n)
struct['slug'] = id2slug(n.id) struct['slug'] = id2slug(n.id)
if n.actor: if n.actor:
struct['actor'] = str(n.actor) struct['actor'] = '{f} {l}'.format(f=n.actor.first_name, l=n.actor.last_name)
if n.target: if n.target:
struct['target'] = str(n.target) struct['target'] = str(n.target)
struct['forward_link'] = n.get_absolute_url() struct['forward_link'] = n.get_absolute_url()
......
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