#19929: "USE_TZ = True" causes error
-----------------------------------+--------------------------------------
     Reporter:  tomas_00           |                    Owner:  aaugustin
         Type:  Bug                |                   Status:  assigned
    Component:  Uncategorized      |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:  datetime,timzone,  |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------

Comment (by anonymous):

 USE_TZ = True
 {{{
 Traceback (most recent call last):
   File "<console>", line 1, in <module>
   File "/home/USER/.virtualenvs/SITE/downloads/django-
 trunk/django/db/models/query.py", line 79, in __repr__
     data = list(self[:REPR_OUTPUT_SIZE + 1])
   File "/home/USER/.virtualenvs/SITE/downloads/django-
 trunk/django/db/models/query.py", line 118, in _result_iter
     upper = len(self._result_cache)
 TypeError: object of type 'NoneType' has no len()
 }}}

 USE_TZ = False

 {{{
 [datetime.datetime(2012, 1, 1, 0, 0), datetime.datetime(2013, 1, 1, 0, 0)]
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19929#comment:5>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to