from django.contrib import admin
from mrbelvedereci.cumulusci.models import Org
from mrbelvedereci.cumulusci.models import Service

class OrgAdmin(admin.ModelAdmin):
    list_display = ('name','repo','scratch')
    list_filter = ('repo','scratch')
admin.site.register(Org, OrgAdmin)

class ServiceAdmin(admin.ModelAdmin):
    list_display = ('name',)
admin.site.register(Service, ServiceAdmin)

from django.contrib import admin
from mrbelvedereci.cumulusci.models import Org
from mrbelvedereci.cumulusci.models import Service

class OrgAdmin(admin.ModelAdmin):
    list_display = ('name','repo','scratch')
    list_filter = ('name', 'scratch', 'repo')
admin.site.register(Org, OrgAdmin)

class ServiceAdmin(admin.ModelAdmin):
    list_display = ('name',)
admin.site.register(Service, ServiceAdmin)

Add filters to Org model
Add filters to Org model

  from django.contrib import admin
  from mrbelvedereci.cumulusci.models import Org
  from mrbelvedereci.cumulusci.models import Service
  
  class OrgAdmin(admin.ModelAdmin):
      list_display = ('name','repo','scratch')
-     list_filter = ('repo','scratch')
+     list_filter = ('name', 'scratch', 'repo')
  admin.site.register(Org, OrgAdmin)
  
  class ServiceAdmin(admin.ModelAdmin):
      list_display = ('name',)
  admin.site.register(Service, ServiceAdmin)
  
Add filters to Org model
## Code Before:
from django.contrib import admin
from mrbelvedereci.cumulusci.models import Org
from mrbelvedereci.cumulusci.models import Service

class OrgAdmin(admin.ModelAdmin):
    list_display = ('name','repo','scratch')
    list_filter = ('repo','scratch')
admin.site.register(Org, OrgAdmin)

class ServiceAdmin(admin.ModelAdmin):
    list_display = ('name',)
admin.site.register(Service, ServiceAdmin)

## Instruction:
Add filters to Org model
## Code After:
from django.contrib import admin
from mrbelvedereci.cumulusci.models import Org
from mrbelvedereci.cumulusci.models import Service

class OrgAdmin(admin.ModelAdmin):
    list_display = ('name','repo','scratch')
    list_filter = ('name', 'scratch', 'repo')
admin.site.register(Org, OrgAdmin)

class ServiceAdmin(admin.ModelAdmin):
    list_display = ('name',)
admin.site.register(Service, ServiceAdmin)
