mirror of
https://github.com/django/django.git
synced 2025-12-18 23:03:16 +00:00
Refs #25294 -- Moved BoundField to django.forms.boundfield.
This commit is contained in:
parent
0603f09318
commit
8550161e53
7 changed files with 245 additions and 227 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue