Changeset - 1aafae38434b
[Not reviewed]
0 1 0
Christopher Neugebauer - 4 years ago 2017-11-29 02:24:11
chrisjrn@gmail.com
Speaker profile may be none
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templatetags/nbpy_tags.py
Show inline comments
...
 
@@ -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:
0 comments (0 inline, 0 general)