Code

Changes between Initial Version and Version 2 of Ticket #18867


Ignore:
Timestamp:
08/28/12 16:00:53 (20 months ago)
Author:
russellm
Comment:

Historically, we haven't modified Django's docs to point out problems in downstream libraries -- the reasoning being that if the bug is fixed, there's never an action to correct Django's documentation and remove the warning. We've usually relied on the ticket tracker making it easy to find such problems.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18867

    • Property Patch needs improvement unset
    • Property Component changed from Database layer (models, ORM) to Documentation
    • Property Needs tests unset
    • Property Owner changed from nobody to aaugustin
    • Property Needs documentation unset
    • Property Type changed from Bug to Cleanup/optimization
    • Property Triage Stage changed from Unreviewed to Accepted
  • Ticket #18867 – Description

    initial v2  
    11Loading a YAML fixture with a timezone aware DateTimeField in Django 1.4 will cause the following warning even if the field is defined with timezone information in the YAML file 
    2  
     2{{{ 
    33django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-08-27 13:01:56.784734) while time zone support is active. 
    4  
     4}}} 
    55Excerpt from testdata.yaml 
    6  
     6{{{ 
    77[...] , insert_date: !!timestamp '2012-08-27 13:01:56.784734+00:00', [...] 
    8  
     8}}} 
    99The test data is loaded by adding "fixtures = ['testdata']" at the start of a test case class. 
    1010