-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UUID on user model not supported by migration #99
Comments
ghost
self-assigned this
Jul 30, 2020
anx-abruckner
added a commit
that referenced
this issue
Oct 25, 2024
I know it's an old issue, but a testapp to cover this usecase was added - the tests seem to work without problem, see PR 198 . |
anx-abruckner
added a commit
that referenced
this issue
Oct 25, 2024
nezhar
added a commit
that referenced
this issue
Nov 5, 2024
Test cases for issue #99 (UUID as user model primary key field)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would appear that your migration assumes an auto increment id field is in use for the user model.
The following error is generated when a UUID is used:
Applying django_rest_passwordreset.0001_initial...Traceback (most recent call last): File "/Users/harry/apps/jt/jt_env/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) psycopg2.errors.DatatypeMismatch: foreign key constraint "django_rest_password_user_id_e8015b11_fk_core_pers" cannot be implemented DETAIL: Key columns "user_id" and "id" are of incompatible types: uuid and integer.
The text was updated successfully, but these errors were encountered: