commit 8c64de92f4148d85704b10ea1f7bc441db2ddfee
Author: Richard Jones <email address hidden>
Date: Fri Sep 11 16:10:06 2015 +1000
Replace default User model PK
The default Django User model PK is an int() AutoField
and django-openstack-auth sets this to a hash string. Django
then breaks trying to coerce that string to an int().
This patch adds a new explicit PK to the d-o-a User
model. It also adds the standard Django "models.py" so
that the consumer application (Horizon) may use it.
The consumer application must set:
AUTH_USER_MODEL = 'openstack_auth.User'
to use the new model in place of the default 'auth.User'.
The approach in this patch was inspired by Lin Hua
Cheng <email address hidden>.
Reviewed: https:/ /review. openstack. org/222478 /git.openstack. org/cgit/ openstack/ django_ openstack_ auth/commit/ ?id=8c64de92f41 48d85704b10ea1f 7bc441db2ddfee
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8c64de92f4148d8 5704b10ea1f7bc4 41db2ddfee
Author: Richard Jones <email address hidden>
Date: Fri Sep 11 16:10:06 2015 +1000
Replace default User model PK
The default Django User model PK is an int() AutoField openstack- auth sets this to a hash string. Django
and django-
then breaks trying to coerce that string to an int().
This patch adds a new explicit PK to the d-o-a User
model. It also adds the standard Django "models.py" so
that the consumer application (Horizon) may use it.
The consumer application must set:
to use the new model in place of the default 'auth.User'.
The approach in this patch was inspired by Lin Hua
Cheng <email address hidden>.
Partial-Bug: 1491117 f36d92ee9dc1a9b ac799ce67e5
Change-Id: I549209eb0bb0dd