Ticket #18666: t18666-auth-save.diff
File t18666-auth-save.diff, 500 bytes (added by , 12 years ago) |
---|
-
django/contrib/auth/models.py
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index 39d9e84..1099aa1 100644
a b class User(models.Model): 299 299 """ 300 300 def setter(raw_password): 301 301 self.set_password(raw_password) 302 self.save( )302 self.save(update_fields=["password"]) 303 303 return check_password(raw_password, self.password, setter) 304 304 305 305 def set_unusable_password(self):