old_contents: from django.contrib import admin
  
  from jobs.models import (
      Job,
      Pipeline,
      PipelineSchedule,
      Queue,
      Worker,
      WorkerHeartbeat,
      Zone,
  )
  
  
  @admin.register(Job)
  class JobAdmin(admin.ModelAdmin):
      """Admin interface for jobs."""
  
      list_display = [
          "id",
          "project_id",
          "created",
          "began",
          "ended",
          "status",
          "method",
          "queue",
          "worker",
      ]
      list_filter = ["status", "method"]
      show_full_result_count = False
  
  
  @admin.register(Pipeline)
  class PipelineAdmin(admin.ModelAdmin):
      """Admin interface for pipelines."""
  
      list_display = ["id", "project_id", "name"]
  
  
  @admin.register(PipelineSchedule)
  class PipelineScheduleAdmin(admin.ModelAdmin):
      """Admin interface for pipeline schedules."""
  
      exclude = [
          "name",
          "task",
          "args",
          "kwargs",
          "description",
          "queue",
          "exchange",
          "routing_key",
          "priority",
          "headers",
      ]
  
  
  @admin.register(Queue)
  class QueueAdmin(admin.ModelAdmin):
      """Admin interface for zones."""
  
      list_display = [
          "name",
          "zone",
          "priority",
          "untrusted",
          "interrupt",
      ]
  
  
  @admin.register(Worker)
  class WorkerAdmin(admin.ModelAdmin):
      """Admin interface for workers."""
  
      list_display = [
          "id",
          "hostname",
          "created",
          "started",
          "updated",
          "active",
      ]
  
  
  @admin.register(WorkerHeartbeat)
  class WorkerHeartbeatAdmin(admin.ModelAdmin):
      """Admin interface for worker heartbeats."""
  
      list_display = [
          "worker_id",
          "time",
          "active",
          "processed",
          "load",
      ]
  
  
  @admin.register(Zone)
  class ZoneAdmin(admin.ModelAdmin):
      """Admin interface for zones."""
  
      list_display = [
          "id",
          "account_id",
          "name",
      ]
  
new_contents: from django.contrib import admin
  
  from jobs.models import (
      Job,
      Pipeline,
      PipelineSchedule,
      Queue,
      Worker,
      WorkerHeartbeat,
      Zone,
  )
  
  
  @admin.register(Job)
  class JobAdmin(admin.ModelAdmin):
      """Admin interface for jobs."""
  
      list_display = [
          "id",
          "project_id",
          "created",
          "began",
          "ended",
          "status",
          "method",
          "queue_id",
          "worker",
      ]
      list_filter = ["status", "method"]
      show_full_result_count = False
  
  
  @admin.register(Pipeline)
  class PipelineAdmin(admin.ModelAdmin):
      """Admin interface for pipelines."""
  
      list_display = ["id", "project_id", "name"]
  
  
  @admin.register(PipelineSchedule)
  class PipelineScheduleAdmin(admin.ModelAdmin):
      """Admin interface for pipeline schedules."""
  
      exclude = [
          "name",
          "task",
          "args",
          "kwargs",
          "description",
          "queue",
          "exchange",
          "routing_key",
          "priority",
          "headers",
      ]
  
  
  @admin.register(Queue)
  class QueueAdmin(admin.ModelAdmin):
      """Admin interface for zones."""
  
      list_display = [
          "name",
          "zone",
          "priority",
          "untrusted",
          "interrupt",
      ]
  
  
  @admin.register(Worker)
  class WorkerAdmin(admin.ModelAdmin):
      """Admin interface for workers."""
  
      list_display = [
          "id",
          "hostname",
          "created",
          "started",
          "updated",
          "active",
      ]
  
  
  @admin.register(WorkerHeartbeat)
  class WorkerHeartbeatAdmin(admin.ModelAdmin):
      """Admin interface for worker heartbeats."""
  
      list_display = [
          "worker_id",
          "time",
          "active",
          "processed",
          "load",
      ]
  
  
  @admin.register(Zone)
  class ZoneAdmin(admin.ModelAdmin):
      """Admin interface for zones."""
  
      list_display = [
          "id",
          "account_id",
          "name",
      ]
  
subject: Use queue_id to reduce querys