-
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
django.db.utils.ProgrammingError: Multiple primary keys for table «django_rest_passwordreset_resetpasswordtoken» are not allowed. #8
Comments
Hi! This is most caused by my "fix" for issue #4. I'll see if I can fix this asap. |
I tried to reproduce the issue, but I couldn't (using sqlite). Can you let me know what database (+ version) you are using (from what I've found out based on the bug, you seem to be using Postgres)? |
Yep, Postgres 9.6 |
I've looked into this, and I wasn't able to reproduce this issue (yet). Which version of psycopg2 are you using (pip freeze would help too)? |
Hello, I've just come across the same error. |
Same version here (psycopg2==2.7.5), will add a pip freeze when i get come |
Sorry for late answer, being busy. Here is my pip freeze:
|
This is an issue with Django Version 2.1 (probably also 2.0). It works fine with Django 1.11.*. I will see if I can fix this issue easily... |
I believe this is related to an unintended breaking change introduced with Django 2.1, see Django Issue #29790. Nevertheless, I believe that I managed to fix this issue with version 0.9.6 which I just released on pypi. I also added Django 2.1 to the list of compatible versions as well as travis-ci/tox tests. I believe that this change should not have a negative impact on users that have already ran the migration. |
Works fine men thank you |
I've just installed the 0.9.6 version and got this while running migrations (Postgres 9.6.2):
UPDATE: this works with Django 2.1.2 but doesn't with 2.0.7 |
So it works with 2.1 but not 2.0 now... Gotta love migrations! I'm reopening and renaming this, and I'll add a note to the readme. edit: Also does not work with 1.11 with the "new" migration... |
migrations broke again, but now for django 1.11 and 2.0
migrations broke again, but now for django 1.11 and 2.0
I've just released version 0.9.7 on pypi, that should be compatible with Django 1.11, 2.0 and 2.1. I'm not particularly happy with that... but as long as it works :D |
Seeing that there are no more problems with this, I'll close it with the solution that we currently have. |
Hi, after updating from version
0.9.4
to0.9.5
i am getting adjango.db.utils.ProgrammingError: Multiple primary keys for table «django_rest_passwordreset_resetpasswordtoken» are not allowed.
trying to do amanage.py migrate
.I don't really know what information you would need to track this issue but i would love to collaborate with you to fix this issue so feel free to ask for whatever context information you would need.
The text was updated successfully, but these errors were encountered: