From 787a42952cc0f7f364eaac443da79dc6d919e305 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Tue, 28 Nov 2017 18:24:28 -0800 Subject: [PATCH] no really --- 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 9ce9559..91a705b 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 = if user.speaker_profile and user.speaker_profile.presentations.count() != 0 + speaker = if hasattr(user, "speaker_profile") and user.speaker_profile.presentations.count() != 0 volunteer = "Volunteer" in ticket_type(context) if organiser: