from django.contrib import admin

from intranet.femida.src.hh.admin import EntityLinkInlineAdmin

from . import models


class SkillAdmin(admin.ModelAdmin):

    search_fields = (
        'name',
    )
    list_display = (
        'name',
        'is_public',
    )
    list_editable = (
        'is_public',
    )

    inlines = (
        EntityLinkInlineAdmin,
    )


admin.site.register(models.Skill, SkillAdmin)
