import biosensorsdb.models
from django.contrib import admin

class ProjectAdmin(admin.ModelAdmin):
  search_fields = ['team__name', 'year', 'title', 'abstract', 'inputs__name', 'outputs__name', 'tags__name']

admin.site.register(biosensorsdb.models.Team)
admin.site.register(biosensorsdb.models.SensorInput)
admin.site.register(biosensorsdb.models.SensorOutput)
admin.site.register(biosensorsdb.models.Track)
admin.site.register(biosensorsdb.models.Application)
admin.site.register(biosensorsdb.models.CompetitionResult)
admin.site.register(biosensorsdb.models.Project, ProjectAdmin)

import biosensorsdb.models
from django.contrib import admin

class ProjectAdmin(admin.ModelAdmin):
  search_fields = [
   'team__name',
   'year',
   'title',
   'abstract',
   'track__name',
   'inputs__name',
   'outputs__name',
   'application__name',
   'results__result',
   'tags__name',
 ]

admin.site.register(biosensorsdb.models.Team)
admin.site.register(biosensorsdb.models.SensorInput)
admin.site.register(biosensorsdb.models.SensorOutput)
admin.site.register(biosensorsdb.models.Track)
admin.site.register(biosensorsdb.models.Application)
admin.site.register(biosensorsdb.models.CompetitionResult)
admin.site.register(biosensorsdb.models.Project, ProjectAdmin)

Make all project fields searchable.
Make all project fields searchable.

  import biosensorsdb.models
  from django.contrib import admin
  
  class ProjectAdmin(admin.ModelAdmin):
-   search_fields = ['team__name', 'year', 'title', 'abstract', 'inputs__name', 'outputs__name', 'tags__name']
+   search_fields = [
+    'team__name',
+    'year',
+    'title',
+    'abstract',
+    'track__name',
+    'inputs__name',
+    'outputs__name',
+    'application__name',
+    'results__result',
+    'tags__name',
+  ]
  
  admin.site.register(biosensorsdb.models.Team)
  admin.site.register(biosensorsdb.models.SensorInput)
  admin.site.register(biosensorsdb.models.SensorOutput)
  admin.site.register(biosensorsdb.models.Track)
  admin.site.register(biosensorsdb.models.Application)
  admin.site.register(biosensorsdb.models.CompetitionResult)
  admin.site.register(biosensorsdb.models.Project, ProjectAdmin)
  
Make all project fields searchable.
## Code Before:
import biosensorsdb.models
from django.contrib import admin

class ProjectAdmin(admin.ModelAdmin):
  search_fields = ['team__name', 'year', 'title', 'abstract', 'inputs__name', 'outputs__name', 'tags__name']

admin.site.register(biosensorsdb.models.Team)
admin.site.register(biosensorsdb.models.SensorInput)
admin.site.register(biosensorsdb.models.SensorOutput)
admin.site.register(biosensorsdb.models.Track)
admin.site.register(biosensorsdb.models.Application)
admin.site.register(biosensorsdb.models.CompetitionResult)
admin.site.register(biosensorsdb.models.Project, ProjectAdmin)

## Instruction:
Make all project fields searchable.
## Code After:
import biosensorsdb.models
from django.contrib import admin

class ProjectAdmin(admin.ModelAdmin):
  search_fields = [
   'team__name',
   'year',
   'title',
   'abstract',
   'track__name',
   'inputs__name',
   'outputs__name',
   'application__name',
   'results__result',
   'tags__name',
 ]

admin.site.register(biosensorsdb.models.Team)
admin.site.register(biosensorsdb.models.SensorInput)
admin.site.register(biosensorsdb.models.SensorOutput)
admin.site.register(biosensorsdb.models.Track)
admin.site.register(biosensorsdb.models.Application)
admin.site.register(biosensorsdb.models.CompetitionResult)
admin.site.register(biosensorsdb.models.Project, ProjectAdmin)
