diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-09-07 17:10:49 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-07 08:10:49 -0400 |
| commit | 8b2515a450ef376b9205029090af0a79c8341bd7 (patch) | |
| tree | 491da78cdf4b8aa3d1704fa90ebd6aa7d4a6b25e /django/contrib/auth/base_user.py | |
| parent | 44a6c27fd461e1d2f37388c26c629f8f170e8722 (diff) | |
Removed unneeded __init__() methods.
Diffstat (limited to 'django/contrib/auth/base_user.py')
| -rw-r--r-- | django/contrib/auth/base_user.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/django/contrib/auth/base_user.py b/django/contrib/auth/base_user.py index 8865b671c9..0f8d5d87e2 100644 --- a/django/contrib/auth/base_user.py +++ b/django/contrib/auth/base_user.py @@ -52,6 +52,10 @@ class AbstractBaseUser(models.Model): REQUIRED_FIELDS = [] + # Stores the raw password if set_password() is called so that it can + # be passed to password_changed() after the model is saved. + _password = None + class Meta: abstract = True @@ -59,12 +63,6 @@ class AbstractBaseUser(models.Model): "Return the identifying username for this User" return getattr(self, self.USERNAME_FIELD) - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - # Stores the raw password if set_password() is called so that it can - # be passed to password_changed() after the model is saved. - self._password = None - def __str__(self): return self.get_username() |
