Browse files

Fixed #11995 -- Modified the admin site definition for comments so th…

…at users are shown as a raw id list. Thanks to James Bennett for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 175ab92 commit 8aee95ca3ef731672bef7c56a512ca2f35701864 @freakboy3742 freakboy3742 committed Oct 8, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/contrib/comments/
@@ -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

0 comments on commit 8aee95c

Please sign in to comment.