diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-05-27 16:08:46 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-27 19:08:46 -0400 |
| commit | 21046e77734278cea871dce922220bf29aa5b7b4 (patch) | |
| tree | e0820850a3d058c35307916da793668f7e5c48b3 /django/contrib/auth/forms.py | |
| parent | 2a5708a304cf337dbf556e2bd87a930079f8f766 (diff) | |
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
Diffstat (limited to 'django/contrib/auth/forms.py')
| -rw-r--r-- | django/contrib/auth/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py index 1242f7079a..1d6d5e2743 100644 --- a/django/contrib/auth/forms.py +++ b/django/contrib/auth/forms.py @@ -410,7 +410,7 @@ class AdminPasswordChangeForm(forms.Form): @property def changed_data(self): data = super().changed_data - for name in self.fields.keys(): + for name in self.fields: if name not in data: return [] return ['password'] |
