... ... e your model's __str__ function with a __unicode__ method, and make sure you use Unicode ( u'foo' ) in that method. Remove prepopulated_from Remove the prepopulated_from argument on model fields. It's no longer valid and has been moved to the ModelAdmin cla ... harField ( maxlength = 30 ) last_name = models . CharField ( maxlength = 30 ) slug = models . CharField ( maxlength = 60 , prepopulate_from = ( "first_name" , "last_name" )) class Admin : list_display = [ "first_name" , "last_name" ] def __str__ ( self ): r ... rt admin from models import Author class AuthorAdmin ( admin . ModelAdmin ): list_display = [ "first_name" , "last_name" ] prepopulated_fields = { "slug" : ( "first_name" , "last_name" )} admin . site . register ( Author , AuthorAdmin ) The Admin One of the ... ... はデフォルトの文字数 50 を使います。 暗黙的に Field.db_index を True にセットします。 It is often useful to automatically prepopulate a SlugField based on the value of some other value. You can do this automatically in the admin using prepopulated_fields . ... 2026年10月08日