<s> from django . contrib import admin <EOL> from blog import models <EOL> class CategoryAdmin ( admin . ModelAdmin ) : <EOL> prepopulated_fields = { "<STR_LIT>" : ( "<STR_LIT:name>" , ) } <EOL> class PostAdmin ( admin . ModelAdmin ) : <EOL> prepopulated_fields = { "<STR_LIT>" : ( "<STR_LIT:title>" , ) } <EOL> admin . site . register ( models . Category , CategoryAdmin ) <EOL> admin . site . register ( models . Post , PostAdmin ) </s>
