1

Each time I filter/exclude against a decimal field I get a Database Error saying:

"cant' adapt"

This doesn't happen in my local enviroment.

I am using Postgresql 8.3.11 in production and 8.4.5 in local enviroment.

I have just recently migrated from MYSQL. (I migrated each database locally and then load a pg_dump in the server for each database)

In MySQL models.DecimalField fields appears as DECIMAL(12,2) but in Postgresql they appear as numeric(12,2)

Any Ideas?

1 Answer 1

1

I have found my answer here:

http://www.defitek.com/blog/2010/06/29/cant-adapt-type-decimal-error-with-django-apache-postgresql-psycopg2/

I hope this helps to more people! :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.