admin.py 659 Bytes
from django.contrib import admin

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

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

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)