mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Refs #25294 -- Moved BoundField to django.forms.boundfield.
This commit is contained in:
committed by
Tim Graham
parent
0603f09318
commit
8550161e53
@@ -16,6 +16,13 @@ except ImportError: # Python 2
|
||||
from UserList import UserList
|
||||
|
||||
|
||||
def pretty_name(name):
|
||||
"""Converts 'first_name' to 'First name'"""
|
||||
if not name:
|
||||
return ''
|
||||
return name.replace('_', ' ').capitalize()
|
||||
|
||||
|
||||
def flatatt(attrs):
|
||||
"""
|
||||
Convert a dictionary of attributes to a single string.
|
||||
|
||||
Reference in New Issue
Block a user