diff options
author | eric <eric.peterson1@twcable.com> | 2015-09-25 13:59:41 -0600 |
---|---|---|
committer | David Lyle <dklyle0@gmail.com> | 2015-10-01 16:10:33 +0000 |
commit | 88fb89b5b787824d06b4c58337b7c960ccd0263b (patch) | |
tree | 82bc4fdae9fcc71011bdda05455b30780e941bae | |
parent | e91e82c929ad09f79f41dc6f049009313d736a00 (diff) | |
download | django_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.py | 2 |
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, |