Greetings,

Over the past few releases, several CharFields in django.contrib.auth have 
been increased to a max_length of 191: username, first_name, and last_name 
immediately 
come to mind.

See: 
https://groups.google.com/forum/#!msg/django-developers/h98-oEi7z7g/xzjtFMf1BwAJ

I've issued a PR to extend Group.name to the same length 
here: https://github.com/django/django/pull/10627 The original ticket this 
is addressing was from a colleague who was bumping into the limit when 
syncing groups to Django from 
LDAP: https://code.djangoproject.com/ticket/29939

The 191 character limit was chosen to support MySQL index limits.

Can anyone think of a reason not to change Group.name to be max_length=191 
as we have with the other fields?

Regards,

Tim

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/a9304881-1d2c-4bc7-84aa-cd9715f443ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to