#28827: AttributeError: 'int' object has no attribute 'tzinfo' with ExtractHour 
and
calculation
-------------------------------------+-------------------------------------
     Reporter:  Martijnth            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.11
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 I guess you meant to use `QuerySet.annotate()` instead of `values()` in
 the description since the latter doesn't accept a `minutes` keyword
 argument.

 Based on my testing of that, it seems this is fixed in Django 2.0 by
 504ce3914fa86a58f29f5369a806f3fe56a0d59a. If not, please reopen with more
 explicit steps (model/queryset) to reproduce.

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

Reply via email to