pinax / django-user-accounts

User accounts for Django
MIT License
1.22k stars 356 forks source link

Account deletion problem - ACCOUNT_DELETION_MARK_CALLBACK #241

Open Alcolo47 opened 7 years ago

Alcolo47 commented 7 years ago

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 commented 7 years ago

I solved it in this PR: https://github.com/pinax/django-user-accounts/pull/242

thijstriemstra commented 7 years ago

can #242 be merged pinax?

riclags commented 7 years ago

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

reillychase commented 6 years ago

Having this problem in pinax-stripe

xmnlab commented 6 years ago

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 commented 5 years ago

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