<s> from django . contrib import admin <EOL> from oembed . models import StoredProvider , StoredOEmbed <EOL> class StoredProviderAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> list_filter = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> actions = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> def activate ( self , request , queryset ) : <EOL> for item in queryset : <EOL> item . active = True <EOL> item . save ( ) <EOL> activate . short_description = "<STR_LIT>" <EOL> def deactivate ( self , request , queryset ) : <EOL> for item in queryset : <EOL> item . active = False <EOL> item . save ( ) <EOL> deactivate . short_description = "<STR_LIT>" <EOL> class StoredOEmbedAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> admin . site . register ( StoredProvider , StoredProviderAdmin ) <EOL> admin . site . register ( StoredOEmbed , StoredOEmbedAdmin ) </s>
