﻿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
22090	ModelAdmin list_filter field member values are serialized using __str__ and not __repr__	sam@…	nobody	"When generating the filter URL query parameters corresponding to model members with choice fields and specified in `list_filter` of ModelAdmin, Django uses the __str__ method of each of the choices to generate the URL query representation of each.

The Django docs specifically note the __str__ as being one which returns an informal human readable representation:
https://docs.djangoproject.com/en/1.6/ref/models/instances/#str

Django should not be assuming that the __str__ value is unambiguous or machine readable. The python standard noted at http://docs.python.org/2/reference/datamodel.html regarding __repr__() is that __repr__ should be the function used for outputting a machine representation of the object:

""If at all possible, this should look like a valid Python expression that could be used to recreate an object with the same value (given an appropriate environment).""

The above described inconvenience means that I have to make the __str__ method in the values that I assign to my model members machine readable, which is goes against both Django and Python recommendations and makes my code messier.
"	Cleanup/optimization	closed	contrib.admin	1.6	Normal	needsinfo	admin, list_filter		Unreviewed	0	0	0	0	0	0
