Using GeneratedField with Postgres

PostgreSQL requires functions and operators referenced in a generated column to be marked as IMMUTABLE. Unfortunately, PostgreSQL’s CONCAT is not considered an immutable, that’s why in Django 5.1 we’ve changed the implementation of Django’s Concat() to use ||

2 Likes