﻿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
17763	Problem with auth_permission name length	stenius@…	anonymous	"Django automatically generates a name that is longer than what the default field length can hold.


{{{INSERT INTO ""auth_permission"" (""name"", ""content_type_id"", ""codename"") VALUES (%s, %s, %s) (u'Can add study plan practice assessment tutorial question', 52, u'add_studyplanpracticeassessmenttutorialquestion')}}}

This will fail with a error about it not being able to fit in a varchar(50)
{{{
                                     Table ""public.auth_permission""
     Column      |          Type          |                          Modifiers                           
-----------------+------------------------+--------------------------------------------------------------
 id              | integer                | not null default nextval('auth_permission_id_seq'::regclass)
 name            | character varying(50 ) | not null
 content_type_id | integer                | not null
 codename        | character varying(100) | not null
}}}
This was under PostgreSQL and after modifying the field to have a length of 200, I was able to perform the insert."	Bug	closed	contrib.auth	1.0	Normal	duplicate		shai@…	Accepted	0	0	0	0	1	0
