So is there no simple way for a user to close their account, and
remove their profile?
On Mar 2, 10:25 am, Luigi Panzeri <defma...@gmail.com> wrote:
> Could you just set the is_active field to false and use the suitable
> queries?
>
> afaik You can't delete the Profile object as other objects may depends on
> (feeds, uploaded content, comments, blogs, friendship, membership and so
> on).
>
> imho, If you want to destroy all the content provided by the user you have
> to provide a custom deep deletion method that recursively delete all the
> data that belongs to the user.
>
> I've done more research on this, and according the Django
> documentation, the _correct_ thing to do, would be set the user as
> inactive.
> As a test I deactivated a user in the Django admin. The trouble herin
> lies in that Pinax apps (basic_profile) and the browse profile views
> etc, do not check or respect the active / inactive field. Which is a
> shame...
There's more to it than that. What do you do with content the user
created? What if user B comments on a thread started by user A -- if
you deactivate user A, does user B's comment get deleted too?
James