<s> from django . contrib import admin <EOL> from planet . models import ( Blog , Generator , Feed , FeedLink , Post , PostLink , <EOL> Author , PostAuthorData , Enclosure , Category ) <EOL> class PostLinkAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT:title>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_filter = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> admin . site . register ( PostLink , PostLinkAdmin ) <EOL> class PostAuthorDataAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_filter = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> admin . site . register ( PostAuthorData , PostAuthorDataAdmin ) <EOL> class EnclosureAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_filter = ( "<STR_LIT>" , ) <EOL> admin . site . register ( Enclosure , EnclosureAdmin ) <EOL> class FeedAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT:title>" , "<STR_LIT:url>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_filter = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> search_fields = [ "<STR_LIT:title>" , "<STR_LIT:url>" , "<STR_LIT>" ] <EOL> admin . site . register ( Feed , FeedAdmin ) <EOL> class AuthorAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT:name>" , "<STR_LIT:email>" ) <EOL> search_fields = [ "<STR_LIT:name>" ] <EOL> admin . site . register ( Author , AuthorAdmin ) <EOL> class EnclosureInline ( admin . StackedInline ) : <EOL> model = Enclosure <EOL> extra = <NUM_LIT:0> <EOL> class PostAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT:title>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_filter = ( "<STR_LIT>" , ) <EOL> search_fields = [ "<STR_LIT:title>" , "<STR_LIT>" ] <EOL> admin . site . register ( Post , PostAdmin , inlines = [ EnclosureInline ] ) <EOL> class BlogAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT:title>" , "<STR_LIT:url>" , "<STR_LIT>" ) <EOL> search_fields = [ "<STR_LIT:title>" , "<STR_LIT:url>" ] <EOL> admin . site . register ( Blog , BlogAdmin ) <EOL> class GeneratorAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT:name>" , "<STR_LIT:version>" , "<STR_LIT>" ) <EOL> admin . site . register ( Generator , GeneratorAdmin ) <EOL> class FeedLinkAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> list_filter = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> admin . site . register ( FeedLink , FeedLinkAdmin ) <EOL> class CategoryAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( "<STR_LIT:title>" , ) <EOL> search_fields = [ "<STR_LIT:title>" ] <EOL> admin . site . register ( Category , CategoryAdmin ) </s>
