From 89bb4770d91eb2fb7806531f3bfdfcc2135ea1d3 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 12 Apr 2022 16:59:45 +0200 Subject: [PATCH] fix individual call --- ereuse_devicehub/resources/user/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/user/models.py b/ereuse_devicehub/resources/user/models.py index 039a4bf3..7981fec5 100644 --- a/ereuse_devicehub/resources/user/models.py +++ b/ereuse_devicehub/resources/user/models.py @@ -85,7 +85,7 @@ class User(UserMixin, Thing): @property def get_full_name(self): - if self.individual: + if self.individuals: return self.individual.get_full_name return self.email