Changes between Version 1 and Version 2 of Ticket #34944, comment 14
- Timestamp:
- Nov 7, 2023, 8:12:41 PM (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34944, comment 14
v1 v2 5 5 Our stance so far has been to make a best effort guess and [https://docs.djangoproject.com/en/4.2/ref/models/expressions/#output-field refuse the temptation to guess]. 6 6 7 > The SQL code for the generated column has an automatically inferred max length of only 255 characters (varchar(255)) 8 9 I wish we were more rigid in this particular case when dealing with parameterized fields such as `CharFied`, `ArrayField`, `DecimalField` but it's non-trivial and often backward incompatible. 10 7 11 I suggest that we take the same approach here and expect the user to specify an explicit `output_field`. 8 12