[https://github.com/django/django/blob/021f946569d0714fccd090bb2a5f1d7ab2720447/django/db/backends/sqlite3/operations.py#L304-L318
These are the offending lines]
example code:
{{{
SomeModel.objects.all().annotate(shear_length=Value(1,
output_field=DecimalField()))
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32585>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Adrian):
Submitted a pull to fix it: [https://github.com/django/django/pull/14168]
--
Ticket URL: <https://code.djangoproject.com/ticket/32585#comment:1>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Thanks for the report, we should make `Value` inherit from
`SQLiteNumericMixin`.
--
Ticket URL: <https://code.djangoproject.com/ticket/32585#comment:2>
* needs_better_patch: 1 => 0
* has_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32585#comment:3>
* owner: nobody => Hasan Ramezani
* status: new => assigned
* has_patch: 0 => 1
Comment:
New [https://github.com/django/django/pull/14199 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32585#comment:4>
* owner: Hasan Ramezani => Manav Agarwal
--
Ticket URL: <https://code.djangoproject.com/ticket/32585#comment:5>
* owner: Manav Agarwal => Hasan Ramezani
--
Ticket URL: <https://code.djangoproject.com/ticket/32585#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"ed0cc52dc3b0dfebba8a38c12b6157a007309900" ed0cc52d]:
{{{
#!CommitTicketReference repository=""
revision="ed0cc52dc3b0dfebba8a38c12b6157a007309900"
Fixed #32585 -- Fixed Value() crash with DecimalField on SQLite.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32585#comment:5>