Ticket #12841: 12841.patch
File 12841.patch, 432 bytes (added by , 15 years ago) |
---|
-
django/forms/forms.py
diff --git a/django/forms/forms.py b/django/forms/forms.py index 6f7a8ce..ea8790b 100644
a b NON_FIELD_ERRORS = '__all__' 19 19 20 20 def pretty_name(name): 21 21 "Converts 'first_name' to 'First name'" 22 name = name [0].upper() + name[1:]22 name = name.capitalize() 23 23 return name.replace('_', ' ') 24 24 25 25 def get_declared_fields(bases, attrs, with_base_fields=True):