old_contents: from django.contrib import admin
  
  from world.initialization import initialize_world
  from world.models import Region, Tile, Settlement, Building, NPC, Character, WorldUnit, World
  from world.turn import pass_turn as pass_turn_func
  
  admin.site.register(Region)
  admin.site.register(Tile)
  admin.site.register(Settlement)
  admin.site.register(Building)
  admin.site.register(NPC)
  admin.site.register(Character)
  admin.site.register(WorldUnit)
  
  
  def initialize_world_admin_action(modeladmin, request, queryset):
      for world in queryset.all():
          initialize_world(world)
  initialize_world_admin_action.short_description = "Initialize world"
  
  
  def pass_turn(modeladmin, request, queryset):
      for world in queryset.all():
          pass_turn_func(world)
  pass_turn.short_description = "Pass turn"
  
  
  @admin.register(World)
  class WorldAdmin(admin.ModelAdmin):
      actions = [pass_turn, initialize_world_admin_action]
  
new_contents: from django.contrib import admin
  
  from world.initialization import initialize_world
  from world.models import Region, Tile, Settlement, Building, NPC, Character, WorldUnit, World
  from world.turn import pass_turn as pass_turn_func
  
  admin.site.register(Region)
  admin.site.register(Tile)
  admin.site.register(Settlement)
  admin.site.register(Building)
  admin.site.register(NPC)
  admin.site.register(WorldUnit)
  
  
  @admin.register(Character)
  class CharacterAdmin(admin.ModelAdmin):
      list_display = ('name', 'profile', 'owner_user', 'location')
      list_filter = ('world', )
  
  
  def initialize_world_admin_action(modeladmin, request, queryset):
      for world in queryset.all():
          initialize_world(world)
  initialize_world_admin_action.short_description = "Initialize world"
  
  
  def pass_turn(modeladmin, request, queryset):
      for world in queryset.all():
          pass_turn_func(world)
  pass_turn.short_description = "Pass turn"
  
  
  @admin.register(World)
  class WorldAdmin(admin.ModelAdmin):
      actions = [pass_turn, initialize_world_admin_action]
  
subject: Improve chracter admin