IntegrityError when updating user
Hello! I want to integrate askbot to my django project. When I'm trying to update user information using admin interface, i'm getting this exception:
update or delete on table "auth_user_groups" violates foreign key constraint "authusergroups_ptr_id_refs_id_7859c44e" on table "askbot_groupmembership"
What are the reasons this can happen?
Comments
Do you have the same issue on askbot alone, without integration? What is the version of the database and Django?
Yes. I deployed askbot as standalone app and still have this problem. Django 1.3.1 and Postgres 9.1.7. I suppose it connected with many to many relation between "auth_user" and "auth_group" (table auth_user_groups). When I deleted all records from table "askbot_groupmembership" user information updated without any exceptions.
Thanks for the info. Maybe this is related to the postgres version, we'll test on that.
Tested postgres 8.3 - same problem.
9.1.8 same problem