遠藤です。
> TypeError: Cannot convert Decimal('0.006') to Decimal
models.pyでDecimalFieldを定義しているmodelがあると思うのですが、
そのfieldに浮動小数点の文字列を格納しようとしているように見えます。
DecimalFieldは十進数用のfieldのようですので、使い方を確認してみてください。
Pythonでエラーが表示された場合は、
> TypeError: Cannot convert Decimal('0.006') to Decimal
の部分より上、Tracebackから始まる行から最終行までの部分を開示すると解決しやすくなります。
--
ENDOH takanao / MiCHiLU Labs.
http://MiCHiLU.com/contacts
--
----------------- http://djangoproject.jp/
-----------------
You received this message because you are subscribed to the Google Groups
"django-ja" 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-ja