#24132: auth_permission name field is too short -------------------------------+-------------------------------------- Reporter: mark0978 | Owner: nobody Type: Uncategorized | Status: new Component: contrib.auth | Version: 1.7 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------------------------- Changes (by mark0978):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Old 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. New 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. -- -- Ticket URL: <https://code.djangoproject.com/ticket/24132#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.7a3ba595b3ee3421ff3225f9481cdc83%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.