Changes between Initial Version and Version 2 of Ticket #18867
- Timestamp:
- Aug 28, 2012, 6:00:53 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18867
- Property Component Database layer (models, ORM) → Documentation
- Property Owner changed from to
- Property Triage Stage Unreviewed → Accepted
- Property Type Bug → Cleanup/optimization
-
Ticket #18867 – Description
initial v2 1 1 Loading 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 {{{ 3 3 django/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 }}} 5 5 Excerpt from testdata.yaml 6 6 {{{ 7 7 [...] , insert_date: !!timestamp '2012-08-27 13:01:56.784734+00:00', [...] 8 8 }}} 9 9 The test data is loaded by adding "fixtures = ['testdata']" at the start of a test case class. 10 10