Skip to content
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

BUG: Cant delete users from admin page #35

Open
SandraBergstrom opened this issue May 11, 2023 · 1 comment
Open

BUG: Cant delete users from admin page #35

SandraBergstrom opened this issue May 11, 2023 · 1 comment

Comments

@SandraBergstrom
Copy link
Owner

IntegrityError at /admin/auth/user/

update or delete on table "auth_user" violates foreign key constraint "cookbook_recipe_likes_user_id_f14c1fd8_fk_auth_user_id" on table "cookbook_recipe_likes"
DETAIL:  Key (id)=(8) is still referenced from table "cookbook_recipe_likes".
Request Method: POST
http://localhost:8000/admin/auth/user/
3.2.18
IntegrityError
update or delete on table "auth_user" violates foreign key constraint "cookbook_recipe_likes_user_id_f14c1fd8_fk_auth_user_id" on table "cookbook_recipe_likes" DETAIL: Key (id)=(8) is still referenced from table "cookbook_recipe_likes".
/workspace/.pyenv_mirror/user/current/lib/python3.11/site-packages/django/db/backends/base/base.py, line 242, in _commit
/home/gitpod/.pyenv/versions/3.11.1/bin/python3
3.11.1
['/workspace/theRecipeCollective', '/home/gitpod/.pyenv/versions/3.11.1/lib/python311.zip', '/home/gitpod/.pyenv/versions/3.11.1/lib/python3.11', '/home/gitpod/.pyenv/versions/3.11.1/lib/python3.11/lib-dynload', '/workspace/.pyenv_mirror/user/current/lib/python3.11/site-packages', '/home/gitpod/.pyenv/versions/3.11.1/lib/python3.11/site-packages']
Thu, 11 May 2023 13:15:28 +0000
@SandraBergstrom
Copy link
Owner Author

Because of an old field in one of the models. Will change database to a clean before deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant