from django.contrib import admin
from .models import Organization

class OrganizationAdmin(admin.ModelAdmin):
    list_display = ('account_num', 'org_name', 'city', 'state', 'country_iso')
    search_fields = ('org_name', 'account_num')
admin.site.register(Organization, OrganizationAdmin)

from django.contrib import admin
from .models import Organization

class OrganizationAdmin(admin.ModelAdmin):
    list_display = ('membersuite_id', 'account_num', 'org_name', 'city',
        'state', 'country_iso')
    search_fields = ('org_name', 'membersuite_id', 'account_num')
admin.site.register(Organization, OrganizationAdmin)

Add membersuite ID to display and search
Add membersuite ID to display and search

  from django.contrib import admin
  from .models import Organization
  
  class OrganizationAdmin(admin.ModelAdmin):
-     list_display = ('account_num', 'org_name', 'city', 'state', 'country_iso')
+     list_display = ('membersuite_id', 'account_num', 'org_name', 'city',
+         'state', 'country_iso')
-     search_fields = ('org_name', 'account_num')
+     search_fields = ('org_name', 'membersuite_id', 'account_num')
  admin.site.register(Organization, OrganizationAdmin)
  
Add membersuite ID to display and search
## Code Before:
from django.contrib import admin
from .models import Organization

class OrganizationAdmin(admin.ModelAdmin):
    list_display = ('account_num', 'org_name', 'city', 'state', 'country_iso')
    search_fields = ('org_name', 'account_num')
admin.site.register(Organization, OrganizationAdmin)

## Instruction:
Add membersuite ID to display and search
## Code After:
from django.contrib import admin
from .models import Organization

class OrganizationAdmin(admin.ModelAdmin):
    list_display = ('membersuite_id', 'account_num', 'org_name', 'city',
        'state', 'country_iso')
    search_fields = ('org_name', 'membersuite_id', 'account_num')
admin.site.register(Organization, OrganizationAdmin)
