#24569: Template `date` filter fails with TypeError
---------------------------------+------------------------------------
     Reporter:  thenikso         |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Template system  |                  Version:  1.8
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+------------------------------------

Comment (by bmispelon):

 OK, I can now reproduce this (the trick is to execute the code in a
 `./manage.py shell`).

 I've tracked down the regression (this code used to work in 1.7) to commit
 543df07720181fe23737ba14f1a261ff6f37f49c.

 As knbk pointed out on IRC, the problem seems to be that
 `translation.get_language()` returns `None` because the
 `BaseManagementCommand` calls `deactivate_all` [1]

 Even though it's a regression, I'm not sure it should be treated as a
 release blocker because I fail to see a valid use-case where this change
 would cause a problem.

 [1]
 
https://github.com/django/django/blob/master/django/core/management/base.py#L391

--
Ticket URL: <https://code.djangoproject.com/ticket/24569#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/066.cc4d6662f8298ebce7cf14d579ec2a84%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to