doa does not work with mysql

recent change to specify db user model and it's key
are not compliant with mysql

This change modifies the character limit to be 255 instead of 256,
which is compliant with mysql.

Change-Id: I85f984c690297003d0e6d696f3103ad5fcf34045
Closes-bug: #1499856
(cherry picked from commit 731fc62fb7)
This commit is contained in:
eric 2015-09-25 13:59:41 -06:00 committed by David Lyle
parent e91e82c929
commit 88fb89b5b7
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class User(models.AbstractBaseUser, models.AnonymousUser):
"""
keystone_user_id = db_models.CharField(primary_key=True, max_length=256)
keystone_user_id = db_models.CharField(primary_key=True, max_length=255)
USERNAME_FIELD = 'keystone_user_id'
def __init__(self, id=None, token=None, user=None, tenant_id=None,