<s> from django . contrib import admin <EOL> from blog . models import * <EOL> class PostAdmin ( admin . ModelAdmin ) : <EOL> search_fields = [ "<STR_LIT:title>" ] <EOL> display_fields = "<STR_LIT>" . split ( ) <EOL> class CommentAdmin ( admin . ModelAdmin ) : <EOL> display_fields = "<STR_LIT>" . split ( ) <EOL> admin . site . register ( BlogPost , PostAdmin ) <EOL> admin . site . register ( BlogComment , CommentAdmin ) </s>
