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


Ignore:
Timestamp:
Nov 7, 2023, 8:10:20 PM (13 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34944, comment 14

    initial v1  
    11Resolving the `output_field` of combined expressions is a complex task that the ORM only has limited support for #26355, #31506, #33397, this is not a problem specific to `GenerateField`.
    22
    3 It is particularly tricky in the case of `varchar(x) + varchar(y)` as some backends restrict the allowed length of `varchar` (e.g. MySQL as 255) and using a `TextField` might come with backend specific limitations.
     3It is particularly tricky in the case of `varchar(x) + varchar(y)` as some backends restrict the allowed length of `varchar` (e.g. MySQL at 255) and using a `TextField` might come with backend specific limitations.
    44
    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 otherwise].
     5Our 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
    77I suggest that we take the same approach here and expect the user to specify an explicit `output_field`.
Back to Top