#22549: DateTimeField raises timezone awareness related RuntimeWarnings when it
should'nt
-------------------------------------+-------------------------------------
     Reporter:  matias@…             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |  worksforme
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by aaugustin):

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


Comment:

 Look two lines above -- the complete code is:

 {{{
         if isinstance(value, datetime.datetime):
             return value
         if isinstance(value, datetime.date):
             # ... stuff you complain about
 }}}

 If value is a `datetime.datetime` the fist branch returns, you don't hit
 the second branch.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22549#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.1f91d503dec353163d0912102eac8950%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to