Forums

Django many to many field couldn't save with save_m2m()

Hi ,

I tried to save my DJANGO model but there is error "ProgrammingError at /products/entegra/add/image/ syntax error at or near "ON"' . However, i can save it localy successfly but on server i faced these error. Also i use same postgresql version.

Thanks.

Then you must be using different Django versions. Right now our Postgres servers run 9.4, which is not compatible with Django 3.0 or higher -- we're planning to provide an upgrade path so that you can move to a more recent version of Postgres soon, but it's not done yet.

Thanks,

I changed the Django version to 2.2.9. It seems fixed.

Excellent, thanks for confirming!