<s> from django . contrib import admin <EOL> from . models import Organization , OrganizationUser , OrganizationOwner <EOL> class OwnerInline ( admin . StackedInline ) : <EOL> model = OrganizationOwner <EOL> raw_id_fields = ( '<STR_LIT>' , ) <EOL> class OrganizationAdmin ( admin . ModelAdmin ) : <EOL> inlines = [ OwnerInline ] <EOL> list_display = [ '<STR_LIT:name>' , '<STR_LIT>' ] <EOL> prepopulated_fields = { "<STR_LIT>" : ( "<STR_LIT:name>" , ) } <EOL> class OrganizationUserAdmin ( admin . ModelAdmin ) : <EOL> list_display = [ '<STR_LIT:user>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> raw_id_fields = ( '<STR_LIT:user>' , '<STR_LIT>' ) <EOL> class OrganizationOwnerAdmin ( admin . ModelAdmin ) : <EOL> raw_id_fields = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> admin . site . register ( Organization , OrganizationAdmin ) <EOL> admin . site . register ( OrganizationUser , OrganizationUserAdmin ) <EOL> admin . site . register ( OrganizationOwner , OrganizationOwnerAdmin ) </s>
