1
0
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:
Moritz Sichert
2015-09-09 15:09:59 +02:00
committed by Tim Graham
parent 0603f09318
commit 8550161e53
7 changed files with 245 additions and 227 deletions

View File

@@ -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.