From 1aafae38434b6aee7949e924b2aa042187465d06 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Tue, 28 Nov 2017 18:24:11 -0800 Subject: [PATCH] Speaker profile may be none --- pinaxcon/templatetags/nbpy_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinaxcon/templatetags/nbpy_tags.py b/pinaxcon/templatetags/nbpy_tags.py index e27b426..9ce9559 100644 --- a/pinaxcon/templatetags/nbpy_tags.py +++ b/pinaxcon/templatetags/nbpy_tags.py @@ -70,7 +70,7 @@ def company_split(name): @register.simple_tag(takes_context=True) def special(context, user): organiser = user.groups.filter(name='Conference organisers').exists() - speaker = user.speaker_profile.presentations.count() != 0 + speaker = if user.speaker_profile and user.speaker_profile.presentations.count() != 0 volunteer = "Volunteer" in ticket_type(context) if organiser: