diff options
| author | Salvo Polizzi <plzslv03a25c351k@studium.unict.it> | 2023-12-31 10:07:13 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-01-02 08:42:33 +0100 |
| commit | 3915d4c70d0d7673abe675525b58117a5099afd3 (patch) | |
| tree | 21f8f95cf8d816d91ed76d5f260c365a8551d17d /django/contrib/auth/base_user.py | |
| parent | e29d1870dd2b44f1b12c4ddf29b3fd24a903f7fd (diff) | |
Fixed #35060 -- Deprecated passing positional arguments to Model.save()/asave().
Diffstat (limited to 'django/contrib/auth/base_user.py')
| -rw-r--r-- | django/contrib/auth/base_user.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/contrib/auth/base_user.py b/django/contrib/auth/base_user.py index aa8e9f8a84..ccfe19fcc1 100644 --- a/django/contrib/auth/base_user.py +++ b/django/contrib/auth/base_user.py @@ -54,6 +54,9 @@ 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) if self._password is not None: |
