def longer_username(sender, *args, **kwargs):
    if (sender.__name__ == 'User' and sender.__module__ ==
        'django.contrib.auth.models'):
        sender._meta.get_field('username').max_length = 75
class_prepared.connect(longer_username)
Made Django's auth track on emails, how to relate username field to email?