anyone else see update user in admin causing errors?
Brand new askbot install latest code within 1 week. linux centOS, postgresql 9.3, python 2.7.5.
running python manage.py runserver hostname -i
:8000
I added the first user to get an admin user.
Second user by normal signup.
Then I go into /admin as first user and try to give the second user "staff" status.
but I get a database error:
update or delete on table "auth_user_groups" violates foreign key constraint "authusergroups_ptr_id_refs_id_e728db87" on table "askbot_groupmembership" DETAIL: Key (id)=(7) is still referenced from table "askbot_groupmembership".
it seems that in order to do this, one must first delete rows from askbot_groupmembership.
migrations all run, but somehow I am still getting this error 170 | askbot | 0170_auto__add_field_group_read_only
if anyone has any ideas, I'd appreciate some advice.
Comments
What is the error with the migration 170?
sorry, I didn't express myself well. I meant to show that I have all migrations successful through 170, but I am still seeing this error wherein I cannot modify a user's status because of the foreign key constraint. I had initially suspected that some migration must have failed to make this error happen. I will take a look at the m2m_changed with pre_delete and try to make a patch. I would think that this is a common case to elevate someone to staff or superuser.
Issue filed: https://github.com/ASKBOT/askbot-devel/issues/256</p<>>