﻿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
28340	USE_THOUSAND_SEPARATOR=True causes primary key to include commas	Zach Borboa	nobody	"When {{{USE_THOUSAND_SEPARATOR=True}}}, an object's primary key (pk) and identifier (id) fields unexpectedly include commas when used in templates.
 
Example:
Say I include {{{<input name=""article_id"" value=""{{ obj.pk }}"">}}} in a template with a submit button to save an article, saves will eventually fail {{{QuerySet.get(pk='1,000')}}} containing a comma. Using {{{ {{ object.pk }} }}} in a template will initially work, but later fail when the 1000th entry is saved.
 
Possible solution: Display numbers using a thousand separator when {{{USE_THOUSAND_SEPARATOR=True}}}, except for an object's pk and object's id fields as these are understood to be keys and identifiers, respectively.
"	Cleanup/optimization	closed	Template system	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
