1 from django.contrib import admin
2 from .models import Word
4 class WordAdmin(admin.ModelAdmin):
5 list_display = ('word', 'alignment')
6 list_filter = ('alignment',)
7 prepopulated_fields = {"slug": ("word",)}
9 admin.site.register(Word, WordAdmin)