From c5ec7e5482571100ef2f83037be22f05a9e33540 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 17 Jan 2019 17:48:25 +1300 Subject: [PATCH] Fix badge --- pinaxcon/registrasion/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pinaxcon/registrasion/models.py b/pinaxcon/registrasion/models.py index c9cb3f53..f60e519f 100644 --- a/pinaxcon/registrasion/models.py +++ b/pinaxcon/registrasion/models.py @@ -216,4 +216,5 @@ class AttendeeProfile(rego.AttendeeProfileBase): return wrap(self.name, 15, break_long_words=False)[0] def last_name(self): - return wrap(self.name, 15, break_long_words=False)[1] + names = wrap(self.name, 15, break_long_words=False) + return names[1] if len(names) > 1 else '' \ No newline at end of file