﻿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
16619	Unable to delete IDs > 999 in contrib.admin with THOUSAND_SEPERATOR=True	Patrick Bregman <patrick.bregman@…>	nobody	"While cleaning up some objects from my tests I noticed that I cannot delete objects with a PK/ID over 999 when THOUSAND_SEPERATOR=True is set. For example, given an object with PK 18240, this is turned into 18.240 when rendered on the admin site. This, in turn, means it is not possible to turn it back into an int.

The exact error message in my case is below, the traceback is posted on dpaste: [http://dpaste.com/hold/592018/]

{{{
ValueError at /admin/companies/company/
invalid literal for int() with base 10: '18.240'
}}}

Steps to reproduce:

1. Start a Django project with an application
2. Create a (simple) model
3. Add >1000 objects of the model in 2
4. Add the admin app to your URLs
5. Create an admin for your model
6. Log in to the admin
7. Try deleting a object with id > 1000

This was noticed under Django 1.2.5"	Bug	closed	contrib.admin	1.2	Normal	needsinfo	admin, THOUSAND_SEPERATOR, delete		Unreviewed	0	0	0	0	0	0
