summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-11-14 07:51:16 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-11-14 07:51:16 +0000
commit659f982150e03b65026097a667666c4e230b7652 (patch)
tree22ced3188c80c9fa57a0481dfd75978d49f0d134
parent539d947ad46b12c51d2de9bd8a08be6cb7866608 (diff)
[django-1.0.X] Fixed #9507 -- Correct an example in the admin docs. Thanks,
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
-rw-r--r--docs/ref/contrib/admin.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/admin.txt b/docs/ref/contrib/admin.txt
index 4f3f898281..f24dc46bf5 100644
--- a/docs/ref/contrib/admin.txt
+++ b/docs/ref/contrib/admin.txt
@@ -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