﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32585	Value() with DecimalField crashes on SQLite.	Adrian Garcia	Hasan Ramezani	"If you try to annotate anything to a decimal field Django will pass a string to create_decimal_from_float function.

[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()))
}}}
"	Bug	closed	Database layer (models, ORM)	3.1	Normal	fixed	SQLite3, annotate, decimal		Accepted	1	0	0	0	1	0
