<s> from django . contrib import admin <EOL> from posts . models import Post <EOL> from guardian . admin import GuardedModelAdmin <EOL> class PostAdmin ( GuardedModelAdmin ) : <EOL> prepopulated_fields = { "<STR_LIT>" : ( "<STR_LIT:title>" , ) } <EOL> list_display = ( '<STR_LIT:title>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> search_fields = ( '<STR_LIT:title>' , '<STR_LIT:content>' ) <EOL> ordering = ( '<STR_LIT>' , ) <EOL> date_hierarchy = '<STR_LIT>' <EOL> admin . site . register ( Post , PostAdmin ) </s>
