admin.py 707 Bytes
from django.contrib import admin

from models import FrameOpinion, FramePosition, GeneralSelectivePreference, \
                   LexicalUnitExamples, SelectivePreferenceRelations, SemanticFrame, \
                   SemanticRole, SemanticRolesDisplay
                   
                   

class SemanticRoleAdmin(admin.ModelAdmin):
    search_fields  = ('role',)

admin.site.register(FrameOpinion)
admin.site.register(FramePosition)
admin.site.register(GeneralSelectivePreference)
admin.site.register(LexicalUnitExamples)
admin.site.register(SemanticFrame)
admin.site.register(SelectivePreferenceRelations)
admin.site.register(SemanticRolesDisplay)
admin.site.register(SemanticRole, SemanticRoleAdmin)