Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account deletion problem - ACCOUNT_DELETION_MARK_CALLBACK #241

Open
Alcolo47 opened this issue Jan 8, 2017 · 6 comments
Open

Account deletion problem - ACCOUNT_DELETION_MARK_CALLBACK #241

Alcolo47 opened this issue Jan 8, 2017 · 6 comments

Comments

@Alcolo47
Copy link
Contributor

Alcolo47 commented Jan 8, 2017

In account 2.0.0:
After confirming account deletion (account.DeleteView.post) the following exception is raised:

AttributeError: 'Settings' object has no attribute 'ACCOUNT_DELETION_MARK_CALLBACK'
(This property is not my settings)

After a quick search I found only one occurrence of DELETION_MARK_CALLBACK' in the sources.

In the documentation we can read:

ACCOUNT_DELETION_MARK_CALLBACK
Default: "account.callbacks.account_delete_mark"

This look like a deprecated settings...

@dimitri-justeau
Copy link
Contributor

dimitri-justeau commented Jan 23, 2017

I solved it in this PR: #242

@thijstriemstra
Copy link
Contributor

can #242 be merged pinax?

@riclags
Copy link

riclags commented Apr 17, 2017

I'm still getting this error. Any idea when this will be merged? Thanks.

@reillychase
Copy link

Having this problem in pinax-stripe

@xmnlab
Copy link

xmnlab commented Sep 6, 2018

I fixed this locally adding this to my settings.py


def ACCOUNT_DELETION_MARK_CALLBACK(account_deletion):
    from account.hooks import hookset
    hookset.account_delete_expunge(account_deletion)

@justb4
Copy link

justb4 commented Nov 14, 2018

The above temp-fix by @xmnlab works for me (django-user-accounts 2.0.3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants