﻿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
25579	Lack of type adaptation in ArrayField querying/lookups	Matt C	Matt C	"This commit: [https://github.com/django/django/commit/39d95fb6ada99c59d47fa0eae6d3128abafe2d58] replaces the `get_prep_value` method with `get_db_prep_value` and I believe this causes a regression with regards to querying on an ArrayField.

`get_db_prep_value` is never called during querying/lookup, hence the array items/values are passed directly to the low-level database Python wrappers without first being transformed (from Python objects to SQL-friendly parameters).

See this question: [http://stackoverflow.com/questions/33250371/arrayfield-class-missing-query-lookup-methods]

Could both the `get_prep_value` and `get_db_prep_value` methods be overridden with duplicate/shared logic to overcome this issue?

Patch pull request: [https://github.com/django/django/pull/6278]"	Bug	closed	contrib.postgres	1.8	Normal	fixed	ArrayField query lookup		Accepted	1	0	0	0	0	0
