Skip to content

Instantly share code, notes, and snippets.

@tachang
Last active December 16, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tachang/5421436 to your computer and use it in GitHub Desktop.
Save tachang/5421436 to your computer and use it in GitHub Desktop.
display_meeting_instructions = False
if user_can_edit:
display_meeting_instructions = True
if request.user.is_authenticated() and Ticket.objects.filter(event=event, user=request.user).exists():
display_meeting_instructions = True
{% if display_meeting_instructions and event.meeting_instructions %}
{{ event.meeting_instructions }}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment