Author: russellm
Date: 2009-10-08 08:30:31 -0500 (Thu, 08 Oct 2009)
New Revision: 11601
Modified:
django/trunk/django/contrib/comments/admin.py
Log:
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.
Modified: django/trunk/django/contrib/comments/admin.py
===================================================================
--- django/trunk/django/contrib/comments/admin.py 2009-10-01 16:15:27 UTC
(rev 11600)
+++ django/trunk/django/contrib/comments/admin.py 2009-10-08 13:30:31 UTC
(rev 11601)
@@ -20,6 +20,7 @@
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---