summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreric <eric.peterson1@twcable.com>2015-09-25 13:59:41 -0600
committerDavid Lyle <dklyle0@gmail.com>2015-10-01 16:10:33 +0000
commit88fb89b5b787824d06b4c58337b7c960ccd0263b (patch)
tree82bc4fdae9fcc71011bdda05455b30780e941bae
parente91e82c929ad09f79f41dc6f049009313d736a00 (diff)
downloaddjango_openstack_auth-88fb89b5b787824d06b4c58337b7c960ccd0263b.tar.gz
doa does not work with mysql2.0.1
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 731fc62fb77d1ae1f29a8a8257a19a638e052203)
-rw-r--r--openstack_auth/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_auth/user.py b/openstack_auth/user.py
index dd68b0f..fa30fe6 100644
--- a/openstack_auth/user.py
+++ b/openstack_auth/user.py
@@ -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,