Blame view

wordnet/admin.py 491 Bytes
Bartłomiej Nitoń authored
1
2
from django.contrib import admin
Bartłomiej Nitoń authored
3
from models import Hypernymy, LexicalUnit, Synonymy
Bartłomiej Nitoń authored
4
5
6

class LexicalUnitAdmin(admin.ModelAdmin):
    search_fields  = ('base',)
Bartłomiej Nitoń authored
7
8
9
10
11
12

class HypernymyAdmin(admin.ModelAdmin):
    search_fields  = ('child__id', 'parent__id')

class SynonymyAdmin(admin.ModelAdmin):
    search_fields  = ('child__id', 'parent__id')
Bartłomiej Nitoń authored
13
14

admin.site.register(LexicalUnit, LexicalUnitAdmin)
Bartłomiej Nitoń authored
15
16
admin.site.register(Hypernymy, HypernymyAdmin)
admin.site.register(Synonymy, SynonymyAdmin)