Ticket #12434: 12841_no_capitalize.patch
File 12841_no_capitalize.patch, 376 bytes (added by , 15 years ago) |
---|
-
django/forms/forms.py
diff --git a/django/forms/forms.py b/django/forms/forms.py index 6f7a8ce..89e4e60 100644
a b NON_FIELD_ERRORS = '__all__' 19 19 20 20 def pretty_name(name): 21 21 "Converts 'first_name' to 'First name'" 22 if not name: 23 return '' 22 24 name = name[0].upper() + name[1:] 23 25 return name.replace('_', ' ') 24 26