Changes between Version 1 and Version 2 of Ticket #34944, comment 14


Ignore:
Timestamp:
Nov 7, 2023, 8:12:41 PM (14 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34944, comment 14

    v1 v2  
    55Our 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].
    66
     7> The SQL code for the generated column has an automatically inferred max length of only 255 characters (varchar(255))
     8
     9I 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
    711I suggest that we take the same approach here and expect the user to specify an explicit `output_field`.
    812
Back to Top