Re: [Django] #18598: Django template language comparisons with None

2012-07-09 Thread Django
#18598: Django template language comparisons with None
-+--
 Reporter:  renatooliveira   |Owner:  nobody
 Type:  Uncategorized|   Status:  closed
Component:  Template system  |  Version:  1.3
 Severity:  Normal   |   Resolution:  invalid
 Keywords:   | Triage Stage:  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+--
Changes (by aaugustin):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 PEP 8 is about Python; it doesn't apply to the Django template language.
 The DTL doesn't attempt to mimic Python.

 See the "Philosophy" note at the beginning of the
 [https://docs.djangoproject.com/en/dev/topics/templates/ template docs].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18598#comment:1>
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.



[Django] #18598: Django template language comparisons with None

2012-07-08 Thread Django
#18598: Django template language comparisons with None
-+
 Reporter:  renatooliveira   |  Owner:  nobody
 Type:  Uncategorized| Status:  new
Component:  Template system  |Version:  1.3
 Severity:  Normal   |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0|  UI/UX:  0
-+
 PEP 8 says:
 "Comparisons to singletons like None should always be done with 'is' or
 'is not', never the equality operators."

 I don't know if it's a bug or a new feature, but {% if something is None
 %} doesn't work.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18598>
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.