Skip to content

Commit

Permalink
Fixed #9507 -- Correct an example in the admin docs. Thanks, john_sco…
Browse files Browse the repository at this point in the history
…tt and

SmileyChris.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Nov 14, 2008
1 parent 40976e0 commit 599852d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/contrib/admin.txt
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 599852d

Please sign in to comment.