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
- [Django]-Django Annotate with select_related
- [Django]-Getting date from Django datetime field with F() expression
- [Django]-Getting started with Django, Heroku and Amazon
- [Django]-Insert a variable from JS to Django form input field
- [Django]-What are the best ways to make your website faster such that it loads up faster and consumes less data in django
Source:stackexchange.com