#28492: output_field in __init__-method of expressions
-------------------------------------+-------------------------------------
Reporter: Mads | Owner: nobody
Jensen |
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
There are a few expression-classes that override `__init__` just to set
`output_field`,
{{{
class Extent3D(GeoAggregate):
def __init__(self, expression, **extra):
super().__init__(expression, output_field=ExtentField(), **extra)
}}}
From this comment
https://github.com/django/django/pull/7611/files#r131567089 `runtests.py`
needs to be adjusted, so it's possible to use a class-variable for the
output field instead.
--
Ticket URL: <https://code.djangoproject.com/ticket/28492>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.34e4f7627f6e7284987bb3e8f2c9d1c3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.