diff --git a/django/db/models/base.py b/django/db/models/base.py index cd300e47bc..f0fd01cef0 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -1138,7 +1138,7 @@ class Model(AltersData, metaclass=ModelBase): for f in meta.local_concrete_fields if not f.generated and (pk_set or f is not meta.auto_field) ] - returning_fields = meta.db_returning_fields + returning_fields = [f for f in meta.db_returning_fields if not f.generated] results = self._do_insert( cls._base_manager, using, fields, returning_fields, raw )