#24516: make_template_fragment_key behaves differently than the {% cache %}
template tag for the "None" value
-------------------------------------+-------------------------------------
     Reporter:  wetneb               |                    Owner:
                                     |  codeinthehole
         Type:  Bug                  |                   Status:  assigned
    Component:  Core (Cache system)  |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:  cache, templatetag   |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by codeinthehole):

 I can't recreate this sorry - I find that `None` gets passed to the
 `make_template_fragment_key` function when called from the template tag.
 Here's the snippet I used to test:

 {{{
         from django.template import Context,Template
         t = Template(
             "{% load cache %}{% cache 300 test myvar %}hello{% endcache
 %}")
         t.render(Context({'myvar': None}))
 }}}

 What am I missing?

--
Ticket URL: <https://code.djangoproject.com/ticket/24516#comment:3>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.7c0badbba683c848a10682f8ad0ea787%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to