#15791: New feature: callable objects can signal that templates should never 
call
them
---------------------------------------+-------------------------------
               Reporter:  ejucovy      |        Owner:  nobody
                   Type:  New feature  |       Status:  new
              Milestone:               |    Component:  Template system
                Version:  SVN          |     Severity:  Normal
             Resolution:               |     Keywords:
           Triage Stage:  Unreviewed   |    Has patch:  1
    Needs documentation:  0            |  Needs tests:  0
Patch needs improvement:  0            |
---------------------------------------+-------------------------------
Changes (by ejucovy):

 * cc: ethan.jucovy@… (added)
 * needs_docs:   => 0
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 I attached a new version of the patch that includes tests for this
 behavior, as well as the implementation and docs.  I added a new module +
 test suite in `regressiontests/templates` since there didn't seem to be
 any existing place to put it.

 This patch also includes tests for the existing behavior (implicitly
 calling variables by default, and discarding variables with
 `alters_data=True`) -- there don't appear to be any existing tests for
 these behaviors in Django's test suite, as far as I can tell.

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

Reply via email to