Skip to content

Conversation

charettes
Copy link
Member

Trac ticket number

ticket-27222

@charettes charettes marked this pull request as ready for review March 22, 2025 04:48
@charettes
Copy link
Member Author

The unveiled failures are related to this ticket

TL;DR the documented pattern for copying model instances breaks when some fields are deferred on the original instance.

This poses a problem with this patch as it marks any field assigned a database expression at save time, db_default included, as deferred instead of leaving a dangling expression assigned (a DatabaseDefault instance in the case of db_default).