old_contents: from django.contrib import admin
  
  from taggit.models import Tag, TaggedItem
  
  
  class TaggedItemInline(admin.StackedInline):
      model = TaggedItem
  
  
  class TagAdmin(admin.ModelAdmin):
      inlines = [TaggedItemInline]
      list_display = ["name", "slug"]
      ordering = ["name", "slug"]
      search_fields = ["name"]
      prepopulated_fields = {"slug": ["name"]}
  
  
  admin.site.register(Tag, TagAdmin)
  
new_contents: from __future__ import unicode_literals
  
  from django.contrib import admin
  
  from taggit.models import Tag, TaggedItem
  
  
  class TaggedItemInline(admin.StackedInline):
      model = TaggedItem
  
  
  class TagAdmin(admin.ModelAdmin):
      inlines = [TaggedItemInline]
      list_display = ["name", "slug"]
      ordering = ["name", "slug"]
      search_fields = ["name"]
      prepopulated_fields = {"slug": ["name"]}
  
  
  admin.site.register(Tag, TagAdmin)
  
subject: Revert accidental removal of __future__.unicode_literals from taggit/admin.py