sigh
This commit is contained in:
parent
787a42952c
commit
1355c0ba83
1 changed files with 4 additions and 1 deletions
|
@ -70,7 +70,10 @@ 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 hasattr(user, "speaker_profile") and user.speaker_profile.presentations.count() != 0
|
try:
|
||||||
|
speaker = user.speaker_profile.presentations.count() != 0
|
||||||
|
except:
|
||||||
|
speaker = False
|
||||||
volunteer = "Volunteer" in ticket_type(context)
|
volunteer = "Volunteer" in ticket_type(context)
|
||||||
|
|
||||||
if organiser:
|
if organiser:
|
||||||
|
|
Loading…
Reference in a new issue