From 8dcb96fa5e07f6f1c6ca368c8ff4894c9032fc93 Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Wed, 20 Sep 2023 16:54:15 +0200
Subject: [PATCH] add full name property to profiles

---
 scipost_django/profiles/models.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scipost_django/profiles/models.py b/scipost_django/profiles/models.py
index a5a70141b..16fde268c 100644
--- a/scipost_django/profiles/models.py
+++ b/scipost_django/profiles/models.py
@@ -90,6 +90,10 @@ class Profile(models.Model):
             self.first_name,
         )
 
+    @property
+    def full_name(self):
+        return f"{self.first_name} {self.last_name}"
+
     @property
     def roles(self):
         try:
-- 
GitLab