On 10 Nov 21:10, Shu Hung (Koala) wrote: > On Tue, Nov 10, 2009 at 8:55 PM, Brett Parker > <idu...@sommitrealweird.co.uk>wrote: > > > > > Well, a password field isn't actually a different type of data than a > > text field, so you'd usually just override the form's default for the > > password field, using a modelform to specify that you want it to appear > > as a password widget. > > > > -- > > Brett Parker > > > > A password field is different from text. > Usually a password field would store hashed password. > > How do I specify, with django's model, that a field need to be encryped and > hased before store?
You'd use field validation, probably using a clean_password method to hash the password from the form and return the "cleaned" data. Thanks, -- Brett Parker --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---