From 998c76d310120c071b7e627d9de157748538f5a7 Mon Sep 17 00:00:00 2001 From: Dimitris Koutsonikolis Date: Wed, 7 Jul 2021 20:40:40 +0300 Subject: [PATCH] fix(hospital-patient-mapping): fixed string representation --- tmh_registry/registry/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmh_registry/registry/models.py b/tmh_registry/registry/models.py index 38ead4e..36ba99d 100644 --- a/tmh_registry/registry/models.py +++ b/tmh_registry/registry/models.py @@ -57,7 +57,7 @@ class Meta: verbose_name_plural = "Patient-Hospital mapping" def __str__(self): - return f"{self.patient.last_name} - {self.hospital.name}" + return f"{self.patient.full_name} - {self.hospital.name}" class Episode(models.Model):