diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-10-08 13:32:23 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-10-08 13:32:23 +0000 |
| commit | 17173ac65af35683b8ca077a3a855eae1625ccd9 (patch) | |
| tree | c6605700a9f70bf1565c8a0772c563a4de8c1150 | |
| parent | c557ea6c120798e49104aa475d24e4570a684776 (diff) | |
[1.1.X] 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.
Backport of r11601 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/comments/admin.py | 1 |
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 |
