﻿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
20748	model permissions created twice when codename has non-ASCII chars	Pietro Bernardi	nobody	"Creating some model permissions I wrongly created one with codename with non-ASCII char.
syncdb created this permission without any error.
Subsequent call of syncdb tries to create it once more, I think, becuse I got error

django.db.utils.IntegrityError: duplicate key value violates unique constraint ""auth_permission_content_type_id_key""
DETAIL:  Key (content_type_id, codename)=(73, dati_per_contabilità) already exists.

Used RDBMS PostgreSQL with psycopg2 backend
After corrected typo all is OK, so really this non-ASCII was the guilty.

IMHO should be better reject it in first run with ""Error - only ASCII chars allowed in codename"""	Uncategorized	closed	Database layer (models, ORM)	1.4	Normal	invalid	permission codename, non-ASCII	timograham@…	Unreviewed	0	0	0	0	0	0
