from django.contrib import admin
from explorer.models import Query
from explorer.actions import generate_report_action


class QueryAdmin(admin.ModelAdmin):
    list_display = ('title', 'description', 'created_by_user',)
    list_filter = ('title',)
    
    actions = [generate_report_action()]

admin.site.register(Query, QueryAdmin)

@@ -239,24 +239,65 @@
  ('title',)%0A
+    raw_id_fields = ('created_by_user',)%0A
     %0A    act

Make "created_by_user" raw_id_field