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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35410, comment 3

    v2 v3  
    11Maybe 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].
     2
     3I think we should adjust [https://github.com/django/django/blob/828b94b178736f7882cc6e5cd86b5c8e84b62ece/django/contrib/auth/checks.py#L84-L103 the checks] to avoid creating user model instances at check time but there are tons of ways why the pattern you are using now might break.
Back to Top