Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Set AccountDeletion.user to None #46

Open
wants to merge 1 commit into from

2 participants

@paltman
Owner

This is required to avoid a 'Key is not present in
auth_user table' exception. I suspect the on_delete
directive is not handling this because the deletion
object is an instance in memory versus getting
selected for deletion.

@paltman paltman Set AccountDeletion.user to None
This is required to avoid a 'Key is not present in
auth_user table' exception. I suspect the on_delete
directive is not handling this because the deletion
object is an instance in memory versus getting
selected for deletion.
667921b
@brosner
Owner

Are you able to reproduce this easily @paltman? I'd like to see a full stack trace before merging this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 31, 2012
  1. @paltman

    Set AccountDeletion.user to None

    paltman authored
    This is required to avoid a 'Key is not present in
    auth_user table' exception. I suspect the on_delete
    directive is not handling this because the deletion
    object is an instance in memory versus getting
    selected for deletion.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  account/callbacks.py
View
1  account/callbacks.py
@@ -6,3 +6,4 @@ def account_delete_mark(deletion):
def account_delete_expunge(deletion):
deletion.user.delete()
+ deletion.user = None
Something went wrong with that request. Please try again.