[Django]-Django psycopg2 and postgresql insertion error

4👍

8.1 doesn’t support the RETURNING clause. So upgrade your database version to the current stable release.

0👍

8.1 doesn’t support RETURNING ids of inserted objects so you need to disable it.

from django.db import connection
##just before insert statement
connection.features.can_return_id_from_insert = False    
###some insert statement 

Leave a comment