Changes between Version 1 and Version 2 of Ticket #27475, comment 2


Ignore:
Timestamp:
Nov 12, 2016, 1:19:04 PM (8 years ago)
Author:
Hugo Tácito

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27475, comment 2

    v1 v2  
    55For example I have a User with date_joined equals 2016-10-16 12:17:44.270221-03 and when I select a date_hierarchy filter, that still raise the same exception of:
    66
    7 NonExistentTimeError at /admin/auth/user/
    8 2016-10-16 00:00:00
     7{{{
     8[12/Nov/2016 13:28:10] "GET /admin/auth/user/?date_joined__year=2016 HTTP/1.1" 200 6265
     9Internal Server Error: /admin/auth/user/
     10Traceback (most recent call last):
     11  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/core/handlers/base.py", line 174, in get_response
     12    response = self.process_exception_by_middleware(e, request)
     13  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/core/handlers/base.py", line 172, in get_response
     14    response = response.render()
     15  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/response.py", line 160, in render
     16    self.content = self.rendered_content
     17  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/response.py", line 137, in rendered_content
     18    content = template.render(context, self._request)
     19  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/backends/django.py", line 95, in render
     20    return self.template.render(context)
     21  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 206, in render
     22    return self._render(context)
     23  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 197, in _render
     24    return self.nodelist.render(context)
     25  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
     26    bit = node.render_annotated(context)
     27  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
     28    return self.render(context)
     29  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render
     30    return compiled_parent._render(context)
     31  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 197, in _render
     32    return self.nodelist.render(context)
     33  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
     34    bit = node.render_annotated(context)
     35  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
     36    return self.render(context)
     37  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render
     38    return compiled_parent._render(context)
     39  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 197, in _render
     40    return self.nodelist.render(context)
     41  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
     42    bit = node.render_annotated(context)
     43  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
     44    return self.render(context)
     45  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py", line 69, in render
     46    result = block.nodelist.render(context)
     47  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
     48    bit = node.render_annotated(context)
     49  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
     50    return self.render(context)
     51  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py", line 69, in render
     52    result = block.nodelist.render(context)
     53  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
     54    bit = node.render_annotated(context)
     55  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
     56    return self.render(context)
     57  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/library.py", line 223, in render
     58    _dict = self.func(*resolved_args, **resolved_kwargs)
     59  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py", line 380, in date_hierarchy
     60    } for day in days]
     61  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py", line 258, in __iter__
     62    self._fetch_all()
     63  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py", line 1074, in _fetch_all
     64    self._result_cache = list(self.iterator())
     65  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py", line 158, in __iter__
     66    for row in compiler.results_iter():
     67  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 808, in results_iter
     68    row = self.apply_converters(row, converters)
     69  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 792, in apply_converters
     70    value = converter(value, expression, self.connection, self.query.context)
     71  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/expressions.py", line 950, in convert_value
     72    value = timezone.make_aware(value, self.tzinfo)
     73  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/utils/timezone.py", line 364, in make_aware
     74    return timezone.localize(value, is_dst=is_dst)
     75  File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/pytz/tzinfo.py", line 327, in localize
     76    raise NonExistentTimeError(dt)
     77NonExistentTimeError: 2016-10-16 00:00:00
     78}}}
    979
    1080
Back to Top