On 11/7/06, Fredp <[EMAIL PROTECTED]> wrote: > I should log IP, user-agent and date/time (perhaps this as a string) > but for privacy reasons I would like to store this crypted, as I don't > need to read them).
If you look in the auth application, passwords are stored as salted SHA1 hashes; we've added convenience functions to do the conversion before storage in the database, which you might want to look into. If you only need to do it on creating a new record in the DB, putting the logic in the 'save' method of the model, using 'if not self.id' to check that it's being created for the first time, would probably be a good way to start on it. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---