Changes between Initial Version and Version 1 of Ticket #21798, comment 6
- Timestamp:
- Mar 13, 2014, 6:18:46 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21798, comment 6
initial v1 1 1 You are talking about `auto_now` and `auto_now_add`, right? There is no `auto_add_now`, as far as I know. 2 2 3 Provided that #21785 has resolved the migration issue, what is the actual need in deprecating this? Looking at the code, I see no reason why it should be invalid, or how it could cause issues. Yes, it would certainly be silly to add both `auto_now` and `auto_now_add`to a field, but Ithere are tons of silly field definitions that we still allow. For example, we also allow the combination of `auto_now_add` and `default`.3 Provided that #21785 has resolved the migration issue, what is the actual need in deprecating this? Looking at the code, I see no reason why it should be invalid, or how it could cause issues. Yes, it would certainly be silly to add both `auto_now` and `auto_now_add`to a field, but there are tons of silly field definitions that we still allow. For example, we also allow the combination of `auto_now_add` and `default`. 4 4 5 A different situation would be if defining both would actually break in some cases, like the issue we resolved in #20484. But with #21785 isfixed, I see no similar situation here. When defining both, as far as I know, it behaves correctly and precisely as one would expect. Therefore, why should we disallow this combination?5 A different situation would be if defining both would actually break in some cases, like the issue we resolved in #20484. But with #21785 fixed, I see no similar situation here. When defining both, as far as I know, it behaves correctly and precisely as one would expect. Therefore, why should we disallow this combination?