Opened 10 years ago
Last modified 10 years ago
#24132 closed Uncategorized
auth_permission name field is too short — at Initial Version
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
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.