google-code-export / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

"manage.py loaddata" fails to load fixture containing db.TimeProperty #242

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. manage.py dumpdata appname > appname.json
2. manage.py flush
3. manage.py loaddata appname.json

What is the expected output? What do you see instead?
loaddata fails with following exception appearing in log:

  File
"%PROJECT_PATH%/common/zip-packages/django-1.1.zip/django/core/management/comman
ds/loaddata.py",
line 150, in handle
    for obj in objects:
  File
"%PROJECT_PATH%/common/zip-packages/django-1.1.zip/django/core/serializers/json.
py",
line 41, in Deserializer
    for obj in PythonDeserializer(simplejson.load(stream)):
  File
"%PROJECT_PATH%/common/zip-packages/django-1.1.zip/django/core/serializers/pytho
n.py",
line 207, in Deserializer
    raise e
ValueError: time data '20:42:31' does not match format '%Y-%m-%d %H:%M:%S'

where %PROJECT_PATH% is path to my project

What version of the product are you using? On what operating system?
1.1RC on Ubuntu 9.10

Please provide any additional information below.
It seems that while handling each field in Deserializer function in
django.core.serializers.python, it fails to find match for db.TimeProperty.

Original issue reported on code.google.com by anton.bu...@gmail.com on 18 Nov 2009 at 6:52