Re: allowing a user to delete their own account and associated data.

2009-03-18 Thread tristan
Guys, thank you, both of you, I have searched hi and low for examples of this and found none. A question, would the example code you have posted behave in the same way as the delete function does in the Auth admin application, in that it would not just delete the user, but also all the profile ob

Re: allowing a user to delete their own account and associated data.

2009-03-18 Thread Tim Chase
> From the interactive shell, it's easy to delete a user:: > > >>> from django.contrib.auth.models import User > >>> u = User.objects.get(username='jacob') > >>> u.delete() > > So, you'd need to write a view that essentially does the above. > Remember that in views, the currently-log

Re: allowing a user to delete their own account and associated data.

2009-03-17 Thread Jacob Kaplan-Moss
On Tue, Mar 17, 2009 at 8:34 PM, tristan wrote: > A pointer to where I might find the python that deletes an account in > the "Auth" admin app would be great, because then I could just copy > that... I've found that does everything I need, but I need to expose > it to my users so they can do it t

Re: allowing a user to delete their own account and associated data.

2009-03-17 Thread tristan
I don't suppose anyone has any insight into this do they? A pointer to where I might find the python that deletes an account in the "Auth" admin app would be great, because then I could just copy that... I've found that does everything I need, but I need to expose it to my users so they can do it

allowing a user to delete their own account and associated data.

2009-03-12 Thread tristan
Hello there, I'm currently learning Django by re-implementing a site based on Pinax. In the Django admin site, I can delete an account and all its associated data by going into auth > account name and deleting it. This works just dandy. What I would like to do is to expose this same functionality