mirror of https://github.com/django/django.git
[1.6.x] Fixed #22093 -- Made Form.Meta.fields examples consistent.
Thanks david-schultz at gmx.net for the suggestion.
Backport of 821fc925f0
from master
This commit is contained in:
parent
a088ce90f2
commit
e56ce87bd8
|
@ -1078,7 +1078,7 @@ code would be required in the app's ``admin.py`` file::
|
|||
|
||||
class Meta:
|
||||
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):
|
||||
# Regardless of what the user provides, return the initial value.
|
||||
|
|
Loading…
Reference in New Issue