Re: user.set_password('new password')

2012-05-21 Thread Timothy Makobu
And a method is a function only accessible through a class. On Mon, May 21, 2012 at 3:39 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On May 19, 5:49 pm, Timothy Makobu > wrote: > > user.save returns the function object, > > > actually it evals to a method object > > > ;)

Re: user.set_password('new password')

2012-05-21 Thread bruno desthuilliers
On May 19, 5:49 pm, Timothy Makobu wrote: > user.save returns the function object, actually it evals to a method object ;) -- 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. T

Re: user.set_password('new password')

2012-05-19 Thread Min Hong Tan
thanks all :) On Sat, May 19, 2012 at 9:49 AM, Timothy Makobu wrote: > user.save returns the function object, which is a valid statement, so > Python wont raise an Exception. > > > On Sat, May 19, 2012 at 9:23 AM, Min Hong Tan wrote: > >> hi.. >> >> thanks!! haha... didn't notice that. how can

Re: user.set_password('new password')

2012-05-19 Thread Timothy Makobu
user.save returns the function object, which is a valid statement, so Python wont raise an Exception. On Sat, May 19, 2012 at 9:23 AM, Min Hong Tan wrote: > hi.. > > thanks!! haha... didn't notice that. how can no error...prompt out one > > > On Fri, May 18, 2012 at 11:48 PM, Jonathan D. Ba

Re: user.set_password('new password')

2012-05-18 Thread Min Hong Tan
hi.. thanks!! haha... didn't notice that. how can no error...prompt out one On Fri, May 18, 2012 at 11:48 PM, Jonathan D. Baker < jonathandavidba...@gmail.com> wrote: > Save is a method, so it needs parentheses: user.save() > > Sent from my iPhone > > On May 18, 2012, at 10:53 PM, Min Hong

Re: user.set_password('new password')

2012-05-18 Thread Jonathan D. Baker
Save is a method, so it needs parentheses: user.save() Sent from my iPhone On May 18, 2012, at 10:53 PM, Min Hong Tan wrote: > Hi, > > I 'm trying to change password in views.py in one of my def. > having the below code. > newpassword ="testing123" > user = User.objects.get(username__exact =