summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-10-08 13:30:31 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-10-08 13:30:31 +0000
commit8aee95ca3ef731672bef7c56a512ca2f35701864 (patch)
tree5b98fcb3ed95fd2367a8820de261df0f719ba35f
parent175ab92d6b96f430d3a38fadac6e4cab2a34c053 (diff)
Fixed #11995 -- Modified the admin site definition for comments so that users are shown as a raw id list. Thanks to James Bennett for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/comments/admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/comments/admin.py b/django/contrib/comments/admin.py
index 3b1fb14bcc..c2f8e564f4 100644
--- a/django/contrib/comments/admin.py
+++ b/django/contrib/comments/admin.py
@@ -20,6 +20,7 @@ class CommentsAdmin(admin.ModelAdmin):
list_filter = ('submit_date', 'site', 'is_public', 'is_removed')
date_hierarchy = 'submit_date'
ordering = ('-submit_date',)
+ raw_id_fields = ('user',)
search_fields = ('comment', 'user__username', 'user_name', 'user_email', 'user_url', 'ip_address')
# Only register the default admin if the model is the built-in comment model