From 38bcf819fa0a304169098159829dfc2d03e30564 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Thu, 7 May 2020 17:28:37 +0100 Subject: [PATCH] trilby's Person gains a key_name property --- kepi/trilby_api/models/person.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kepi/trilby_api/models/person.py b/kepi/trilby_api/models/person.py index eac4c0e..4e78c99 100644 --- a/kepi/trilby_api/models/person.py +++ b/kepi/trilby_api/models/person.py @@ -173,6 +173,10 @@ class Person(models.Model): 'username': self.local_user.username, }) + @property + def key_name(self): + return self.url + '#main-key' + @property def following_count(self):