diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-12-13 09:16:03 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-01-15 22:28:37 +0100 |
| commit | d5fec03dad035e88494bf55194cbbbe4b20b5e5b (patch) | |
| tree | f8c67a9f0bbd482984b683182102da82e16c00b6 /django/contrib/auth/base_user.py | |
| parent | 8d695bf510154317a5f748aa5e705124e8b06001 (diff) | |
Refs #35060 -- Removed passing positional arguments to Model.save()/asave() per deprecation timeline.
Diffstat (limited to 'django/contrib/auth/base_user.py')
| -rw-r--r-- | django/contrib/auth/base_user.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/django/contrib/auth/base_user.py b/django/contrib/auth/base_user.py index 5bb88ac4dd..f19b2d89b9 100644 --- a/django/contrib/auth/base_user.py +++ b/django/contrib/auth/base_user.py @@ -58,11 +58,8 @@ class AbstractBaseUser(models.Model): def __str__(self): return self.get_username() - # RemovedInDjango60Warning: When the deprecation ends, replace with: - # def save(self, **kwargs): - # super().save(**kwargs) - def save(self, *args, **kwargs): - super().save(*args, **kwargs) + def save(self, **kwargs): + super().save(**kwargs) if self._password is not None: password_validation.password_changed(self._password, self) self._password = None |
