Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[django-1.0.X] Fixed #9507 -- Correct an example in the admin docs. T…

…hanks,

john_scott and SmileyChris.

Backport of r9432 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 659f982150e03b65026097a667666c4e230b7652 1 parent 539d947
Malcolm Tredinnick malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/contrib/admin.txt
4 docs/ref/contrib/admin.txt
View
@@ -262,7 +262,7 @@ You have four possible values that can be used in ``list_display``:
example::
def upper_case_name(obj):
- return "%s %s" % (obj.first_name, obj.last_name).upper()
+ return ("%s %s" % (obj.first_name, obj.last_name)).upper()
upper_case_name.short_description = 'Name'
class PersonAdmin(admin.ModelAdmin):
@@ -275,7 +275,7 @@ You have four possible values that can be used in ``list_display``:
list_display = ('upper_case_name',)
def upper_case_name(self, obj):
- return "%s %s" % (obj.first_name, obj.last_name).upper()
+ return ("%s %s" % (obj.first_name, obj.last_name)).upper()
upper_case_name.short_description = 'Name'
* A string representing an attribute on the model. This behaves almost
Please sign in to comment.
Something went wrong with that request. Please try again.