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
This commit is contained in:
eric 2015-09-25 13:59:41 -06:00 committed by Rob Cresswell
parent 25b7d778aa
commit 731fc62fb7
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,