In my application I have a function which allows a user to delete his
account:
@auth.requires(lambda: auth.has_membership(ADMIN) or
auth.has_membership(VIEW))
def deleteAccount():
....
db(db.auth_user.nodeID==id).delete()
auth.logout()
redirect(URL('cms','index'))
....
return dict(form=form)
... this code results in a error:
<class 'gluon.contrib.pg8000.errors.ProgrammingError'> ('ERROR', '23503',
'insert or update on table "auth_event" violates foreign key constraint
"auth_event_user_id_fkey"')
Is there a way to bypass the insert in the auth_event table in this case.
Kind regards,
Annet
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.