Changes between Initial Version and Version 1 of Ticket #37168, comment 2
- Timestamp:
- Jun 13, 2026, 11:24:47 AM (108 minutes ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37168, comment 2
initial v1 1 We wanted to add `DatabaseDefault()` to the list of `Field.empty_values` and modify its `__hash__` and `__eq__`. Unfortunately, there is an issue in importing `DatabaseDefault` anywhere in the `forms` module and `expression` is required to initialize `DatabaseDefault`. I'm thinking about adding `is_value_empty()` hook to the `Field`:1 We wanted to add `DatabaseDefault()` to the list of `Field.empty_values` and modify its `__hash__` and `__eq__`. Unfortunately, `expression` is required to initialize `DatabaseDefault` and, TBH, `DatabaseDefaults` with different expression should not be consider equal. I'm thinking about adding `is_value_empty()` hook to the `models.Field`: 2 2 {{{#!python 3 3 def is_value_empty(self, value):