Speaker profile may be none
This commit is contained in:
		
							parent
							
								
									27428eeb59
								
							
						
					
					
						commit
						1aafae3843
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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: | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer