Fixed #22093 -- Made Form.Meta.fields examples consistent.

Thanks david-schultz at gmx.net for the suggestion.
This commit is contained in:
Tim Graham 2014-02-19 12:29:47 -05:00
parent 99416c7ad0
commit 821fc925f0
1 changed files with 1 additions and 1 deletions

View File

@ -1051,7 +1051,7 @@ code would be required in the app's ``admin.py`` file::
class Meta: class Meta:
model = MyUser model = MyUser
fields = ['email', 'password', 'date_of_birth', 'is_active', 'is_admin'] fields = ('email', 'password', 'date_of_birth', 'is_active', 'is_admin')
def clean_password(self): def clean_password(self):
# Regardless of what the user provides, return the initial value. # Regardless of what the user provides, return the initial value.