#34944: Missing or misinferred attributes in output fields of generated fields
-------------------------------------+-------------------------------------
Reporter: Paolo Melchiorre | Owner: Om Dahale
Type: Bug | Status: assigned
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: field, database, | Triage Stage: Accepted
generated, output_field |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Paolo Melchiorre):
Replying to [comment:11 Lily Foote]:
> I'm curious if there are other expressions that could lead to an
increased column size or if it's just `Concat`.
Unfortunately, many other cases come to mind, for example a field
generated as a product of two IntegerField which should be a
BigIntegerField.
> If that's not feasible I would lean towards detecting the case where the
column size could be invalid and require `output_field` explicitly in
those cases. I'd be sad if `GeneratedField` always required an explicit
`output_field`.
I agree with you but from the various tests I have done there are more and
more cases in which the automatically derived output field has problems.
--
Ticket URL: <https://code.djangoproject.com/ticket/34944#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018bab62147d-9b98496a-563e-43a8-8727-dc21143195cd-000000%40eu-central-1.amazonses.com.