confirmed = get_object_or_404(EmailConfirmed, user=request.user)
if not confirmed.confirmed:
    template = 'accounts/email_confirmation.html'
context = {}
return render(request, template, context)
django views if statement not working with a boolean