| 67 | This pyscopg2 (PostgreSQL) error usually signifies that some ''previous'' database query was incorrect (e.g., you tried to {{{order_by()}}} a field that doesn't exist, or put a string in an integer column, etc.). That previous error aborted the transaction, causing all subsequent database access to fail with this message. |
| 68 | |
| 69 | If you get this while at a shell, you can fix your database connection by executing a rollback: |
| 70 | {{{ |
| 71 | from django.db import connection |
| 72 | connection.cursor().execute('rollback') |
| 73 | }}} |
| 74 | |
| 75 | If you get this from a view, it probably means the immediately previous query had a problem (but was caught by an over-eager exception handler). |
| 76 | |