#17230: Broken boolean comparison in template 'if' '==' expression -------------------------------------+------------------------------------- Reporter: anatoly techtonik | Owner: nobody <techtonik@…> | Status: reopened Type: Bug | Version: 1.2 Component: Template system | Resolution: Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 1 -------------------------------------+------------------------------------- Changes (by anatoly techtonik <techtonik@…>):
* status: closed => reopened * resolution: invalid => Comment: 1. You missed the fact that I need to distinguish between `closed == None` and `closed == False`. How to do this? 2. AFAIK is a poor excuse. It standard boolean literals are not allowed in expressions while string and integer literals are, then it should be documented properly at least. -- Ticket URL: <https://code.djangoproject.com/ticket/17230#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.