|
1
2
|
from django.contrib import admin
|
|
3
4
5
|
from models import FrameOpinion, FramePosition, GeneralSelectivePreference, \
LexicalUnitExamples, SelectivePreferenceRelations, SemanticFrame, \
SemanticRole, SemanticRolesDisplay
|
|
6
|
|
|
7
8
9
10
11
|
class SemanticRoleAdmin(admin.ModelAdmin):
search_fields = ('role',)
|
|
12
|
admin.site.register(FrameOpinion)
|
|
13
|
admin.site.register(FramePosition)
|
|
14
15
|
admin.site.register(GeneralSelectivePreference)
admin.site.register(LexicalUnitExamples)
|
|
16
|
admin.site.register(SemanticFrame)
|
|
17
18
19
|
admin.site.register(SelectivePreferenceRelations)
admin.site.register(SemanticRolesDisplay)
admin.site.register(SemanticRole, SemanticRoleAdmin)
|