@login_required
def invitation_error(request, error_message='You do not have any invitations at this time.', template_name='invitations/invitation_error.html'):
 return render(request, template_name, {'error_message': error_message})

@ login_required def invitation_error ( request , error_message = 'You do not have any invitations at this time.' , template_name = 'invitations/invitation_error.html' ) : return render ( request , template_name , { 'error_message' : error_message } )
returns an error template .