Ticket #11995: 11995-raw-id-user-comments.diff

File 11995-raw-id-user-comments.diff, 587 bytes (added by ubernostrum, 5 years ago)
  • django/contrib/comments/admin.py

     
    2020    list_filter = ('submit_date', 'site', 'is_public', 'is_removed')
    2121    date_hierarchy = 'submit_date'
    2222    ordering = ('-submit_date',)
     23    raw_id_fields = ('user',)
    2324    search_fields = ('comment', 'user__username', 'user_name', 'user_email', 'user_url', 'ip_address')
    2425
    2526# Only register the default admin if the model is the built-in comment model
Back to Top