Ask Your Question

Django user admin interface operations will be failed

asked 2013-06-27 03:55:41 -0600

ml's avatar

For all users created with the login dialog all operations in the Django user admin interface will be failed with following exception (example for user 1):

Request Method: POST Request URL: http://<host>:<port>/admin/auth/user/1/ Django Version: 1.4 Exception Type: IntegrityError Exception Value:

update or delete on table "auth_user_groups" violates foreign key constraint "authusergroups_ptr_id_refs_id_5cdfc23b7859c44e" on table "askbot_groupmembership" DETAIL: Key (id)=(1) is still referenced from table "askbot_groupmembership".

Exception Location: /usr/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/ in _commit, line 235 Python Executable: /usr/bin/python Python Version: 2.7.3

Why conflicts the Askbot user administration with the underlying Django user administration? Is this a known issue?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-28 02:12:48 -0600

Evgeny's avatar

It is a known issue. We have patched the table linking group with user with a new field level and Django admin does not like this, we'd need to add our own table instead.

There will also be a reverse issue - when you change group memberships via the django admin, we'll need to make sure that our records are also in sync (each group membership must be associated with the level parameter which can be 0 - "pending" and 1 - "full".

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-06-27 03:55:41 -0600

Seen: 573 times

Last updated: Jun 28 '13