<filename>manageXML/admin.py
from django.contrib import admin
from .models import *
from simple_history.admin import SimpleHistoryAdmin


class LexemeAdmin(SimpleHistoryAdmin):
    search_fields = ('id', 'lexeme', 'pos',)


class RelationAdmin(SimpleHistoryAdmin):
    search_fields = ('id', 'lexeme_from__lexeme', 'lexeme_to__lexeme',)


admin.site.register(DataFile)
admin.site.register(Lexeme, LexemeAdmin)
admin.site.register(Relation, RelationAdmin)
admin.site.register(Affiliation)
admin.site.register(Example, SimpleHistoryAdmin)
admin.site.register(Source, SimpleHistoryAdmin)

<filename>manageXML/admin.py
from django.contrib import admin
from .models import *
from simple_history.admin import SimpleHistoryAdmin


class LexemeAdmin(SimpleHistoryAdmin):
    search_fields = ('id', 'lexeme', 'pos',)


class RelationAdmin(SimpleHistoryAdmin):
    search_fields = ('id', 'lexeme_from__lexeme', 'lexeme_to__lexeme',)


admin.site.register(DataFile)
admin.site.register(Lexeme, LexemeAdmin)
admin.site.register(Relation, RelationAdmin)
admin.site.register(Affiliation)
admin.site.register(Example, SimpleHistoryAdmin)
admin.site.register(Source, SimpleHistoryAdmin)
