Changes between Version 1 and Version 2 of Ticket #35410, comment 3


Ignore:
Timestamp:
Apr 26, 2024, 2:08:29 PM (7 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35410, comment 3

    v1 v2  
    1 Maybe I ask you are not simply `NULL` to denote the lack of assignment? Trying to perform database operations in a `Field.default` callback is doomed to fail in myriad of ways hence why the documentation suggests that a literal value be returned instead.
     1Maybe I ask you are not simply `NULL` to denote the lack of assignment? Trying to perform database operations in a `Field.default` callback is doomed to fail in a myriad of ways [https://docs.djangoproject.com/en/5.0/ref/models/fields/#django.db.models.Field.default hence why the documentation suggests that a literal value be returned instead].
Back to Top