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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* 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>
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #8162. Fixed in 1.8
--
Ticket URL: <https://code.djangoproject.com/ticket/24132#comment:2>