no really

This commit is contained in:
Christopher Neugebauer 2017-11-28 18:24:28 -08:00
parent 1aafae3843
commit 787a42952c

View file

@ -70,7 +70,7 @@ def company_split(name):
@register.simple_tag(takes_context=True) @register.simple_tag(takes_context=True)
def special(context, user): def special(context, user):
organiser = user.groups.filter(name='Conference organisers').exists() 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) volunteer = "Volunteer" in ticket_type(context)
if organiser: if organiser: