old_contents: from django.contrib import admin
  from hostmonitor.models import Host, Network
  
  class NetworkAdmin(admin.ModelAdmin):
      prepopulated_fields = {"slug": ("name",)}
  
  admin.site.register(Host)
  admin.site.register(Network, NetworkAdmin)
  
new_contents: from django.contrib import admin
  from hostmonitor.models import Host, Network
  
  class NetworkAdmin(admin.ModelAdmin):
      prepopulated_fields = {"slug": ("name",)}
  
  class HostAdmin(admin.ModelAdmin):
      search_fields = ['name', 'ip']
  
  admin.site.register(Host, HostAdmin)
  admin.site.register(Network, NetworkAdmin)
  
subject: Enable search in admin