mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.
This commit is contained in:
committed by
Tim Graham
parent
afcf44c101
commit
3eb679a869
@@ -10,7 +10,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
def pretty_name(name):
|
||||
"""Converts 'first_name' to 'First name'"""
|
||||
"""Convert 'first_name' to 'First name'."""
|
||||
if not name:
|
||||
return ''
|
||||
return name.replace('_', ' ').capitalize()
|
||||
|
||||
Reference in New Issue
Block a user