kartoza / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
http://geonode.org/
GNU General Public License v3.0
8 stars 17 forks source link

error after deleting user #520

Open gubuntu opened 5 years ago

gubuntu commented 5 years ago

I deleted a duplicate VictorSambo user in Admin and after confirming deletion got

'There was a problem loading this page'

http://geonode.ingc.gov.mz/en/admin/people/profile/1020/

and he was not deleted

boney-bun commented 5 years ago

the error is caused by a constraint on people_profile table in production. the constraint will check account_account table on user deletion.

interestingly, the same table constraint doesn't exist in the testing server and in my local machine. in another word, account_account table and its relation in people_people table shouldn't be existed in the production's db.