Permalink
Browse files

made 'sender' a raw_id_field

  • Loading branch information...
1 parent b052ffe commit fbbca27fd59a329145a7c7b62d9faa7075e8f15f @hannesstruss hannesstruss committed Aug 23, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 threaded_messages/admin.py
@@ -13,6 +13,7 @@ class MessageAdmin(admin.ModelAdmin):
ordering = ('-sent_at',)
search_fields = ('body', 'sender__first_name',
'sender__last_name', 'sender__username')
+ raw_id_fields = ('sender',)
admin.site.register(Message, MessageAdmin)

0 comments on commit fbbca27

Please sign in to comment.