admin.py 400 Bytes
#-*- coding:utf-8 -*-

from django.contrib import admin

from models import Category, Expression, Meaning, Segment, Source

class MeaningAdmin(admin.ModelAdmin):
    search_fields = ['expressions__text',]
    list_filter = ('category',)

admin.site.register(Category)
admin.site.register(Expression)
admin.site.register(Meaning, MeaningAdmin)
admin.site.register(Segment)
admin.site.register(Source)