#8412: When there is a DateTimeField in, data saved with dumpdata cannot be
reloaded using loaddata (on German Systems)
------------------------------------------------+---------------------------
 Reporter:  Mark Essien <[EMAIL PROTECTED]>  |       Owner:  nobody    
   Status:  new                                 |   Milestone:            
Component:  Serialization                       |     Version:  SVN       
 Keywords:  loaddata dumpdata DateTimeField     |       Stage:  Unreviewed
Has_patch:  0                                   |  
------------------------------------------------+---------------------------
 To recreate:

 1. Setup Django on a Windows XP system with the Time Format set to German
 (19/8/2008)

 2. Save the data using manage.py dumpdata > initial_data.json<br>

 3. Reload the data using manage.py loaddata initial_data.json<br>

 The message appears:

 {{{
 Problem installing fixture 'initial_data.json': Traceback (most recent
 call last
 ):
   File "C:\Program Files\Python\Lib\site-
 packages\django\core\management\command
 s\loaddata.py", line 108, in handle
     for obj in objects:
   File "C:\Program Files\Python\Lib\site-
 packages\django\core\serializers\json.p
 y", line 42, in Deserializer
     for obj in PythonDeserializer(simplejson.load(stream)):
   File "C:\Program Files\Python\Lib\site-
 packages\django\core\serializers\python
 .py", line 93, in Deserializer
     data[field.name] = field.to_python(field_value)
   File "C:\Program Files\Python\Lib\site-
 packages\django\db\models\fields\__init
 __.py", line 631, in to_python
     raise validators.ValidationError, _('Enter a valid date/time in YYYY-
 MM-DD H
 H:MM format.')
 ValidationError: [u'Enter a valid date/time in YYYY-MM-DD HH:MM format.']
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8412>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to