Opened 10 years ago

Closed 10 years ago

#24132 closed Uncategorized (duplicate)

auth_permission name field is too short

Reported by: Mark Jones Owned by: nobody
Component: contrib.auth Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Mark Jones)

CREATE TABLE `auth_permission` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `content_type_id` int(11) NOT NULL,
  `codename` varchar(100) NOT NULL,
)

codename and name are almost identical fields, except name has added spaces and the string "Can" stuck in front of it. Why then is the codename field varchar(100) and the name field varchar(50).

Right now this is causing me grief because one of the model names is long enough to make the name field more than 50 characters.

Now that migrations are part of the core of Django, this should be easy to fix.

Change History (2)

comment:1 by Mark Jones, 10 years ago

Description: modified (diff)

comment:2 by Markus Holtermann, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #8162. Fixed in 1.8

Note: See TracTickets for help on using tickets.
Back to Top