Blame view

semantics/admin.py 707 Bytes
Bartłomiej Nitoń authored
1
2
from django.contrib import admin
Bartłomiej Nitoń authored
3
4
5
from models import FrameOpinion, FramePosition, GeneralSelectivePreference, \
                   LexicalUnitExamples, SelectivePreferenceRelations, SemanticFrame, \
                   SemanticRole, SemanticRolesDisplay
Bartłomiej Nitoń authored
6
Bartłomiej Nitoń authored
7
8
9
10
11


class SemanticRoleAdmin(admin.ModelAdmin):
    search_fields  = ('role',)
Bartłomiej Nitoń authored
12
admin.site.register(FrameOpinion)
Bartłomiej Nitoń authored
13
admin.site.register(FramePosition)
Bartłomiej Nitoń authored
14
15
admin.site.register(GeneralSelectivePreference)
admin.site.register(LexicalUnitExamples)
Bartłomiej Nitoń authored
16
admin.site.register(SemanticFrame)
Bartłomiej Nitoń authored
17
18
19
admin.site.register(SelectivePreferenceRelations)
admin.site.register(SemanticRolesDisplay)
admin.site.register(SemanticRole, SemanticRoleAdmin)