Opened 9 years ago

Closed 5 years ago

#13924 closed New feature (wontfix)

Add information about error "can't adapt type 'Decimal'" to documentation

Reported by: dmkurilov Owned by: nobody
Component: Documentation Version:
Severity: Normal Keywords: Decimal error
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When you use Django with Apache and mod_wsgi (as described here) and when your application uses PostgreSQL with psycopg2 sometimes you get error ProgrammingError: can't adapt type 'Decimal'.

Here and here is decision. I guess it would be nice to read about this error and ways to solve it in Django documentation rather than use Google.


Change History (5)

comment:1 Changed 8 years ago by Gabriel Hurley

Triage Stage: UnreviewedAccepted

There may be a useful tidbit Django could share here, but I'd like to see any potential patch have an explanation of why either the process_group directive or daemon mode setting prevent this Decimal value from being passed in erroneously. Moreover, the threads linked recommend upgrading psycopg2 and mod_wsgi; is there some minimum version required for this fix to work? Simply saying "if you're getting this error then do this" doesn't seem like enough to me.

comment:2 Changed 8 years ago by Graham King

Severity: Normal
Type: New feature

comment:3 Changed 7 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:4 Changed 7 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:5 Changed 5 years ago by Tim Graham

Resolution: wontfix
Status: newclosed

This was fixed in psycopg 2.4.3 (ticket #52).

Note: See TracTickets for help on using tickets.
Back to Top