from django.contrib import admin

from applications.personal_center.models import *
from zhiliangku.settings import tinymce_js


@admin.register(Resume)
class ResumeAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        "name",
        "sex",
        "birthday",
        "years_of_service",
        "education",
        "status",
        "company",
        "position",
        "advantage",
        "career_objective",
    )
    search_fields = ("name", 'years_of_service', "education")

    class Media:
        js = tinymce_js


@admin.register(CareerObjective)
class CareerObjectiveAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        'way',
        "position",
        "city",
        "expect_salary",
        "industry",
    )
    search_fields = ('position',)


@admin.register(WorkExperience)
class WorkExperienceAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        "company",
        "position",
        "start_time",
        "end_time",
        "content",
    )
    search_fields = ('company',)

    class Media:
        js = tinymce_js


@admin.register(ProjectExperience)
class ProjectExperienceAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        "name",
        "role",
        "url",
        "start_time",
        "end_time",
        "description",
        "performance",
    )
    search_fields = ('project_name',)

    class Media:
        js = tinymce_js


@admin.register(EducationExperience)
class EducationExperienceAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        "school",
        "discipline",
        "education",
        "start_time",
        "end_time",
        "experience",
    )
    search_fields = ('school',)

    class Media:
        js = tinymce_js

1605b3746ef126241625784c5b1adcc4d63cc74b
<mask token>


@admin.register(EducationExperience)
class EducationExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'school', 'discipline',
        'education', 'start_time', 'end_time', 'experience')
    search_fields = 'school',


    class Media:
        js = tinymce_js

<mask token>


@admin.register(CareerObjective)
class CareerObjectiveAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>


@admin.register(WorkExperience)
class WorkExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'company', 'position',
        'start_time', 'end_time', 'content')
    search_fields = 'company',


    class Media:
        js = tinymce_js


@admin.register(ProjectExperience)
class ProjectExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'name', 'role', 'url',
        'start_time', 'end_time', 'description', 'performance')
    search_fields = 'project_name',


    class Media:
        js = tinymce_js


@admin.register(EducationExperience)
class EducationExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'school', 'discipline',
        'education', 'start_time', 'end_time', 'experience')
    search_fields = 'school',


    class Media:
        js = tinymce_js

<mask token>


@admin.register(CareerObjective)
class CareerObjectiveAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'way', 'position', 'city',
        'expect_salary', 'industry')
    search_fields = 'position',


@admin.register(WorkExperience)
class WorkExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'company', 'position',
        'start_time', 'end_time', 'content')
    search_fields = 'company',


    class Media:
        js = tinymce_js


@admin.register(ProjectExperience)
class ProjectExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'name', 'role', 'url',
        'start_time', 'end_time', 'description', 'performance')
    search_fields = 'project_name',


    class Media:
        js = tinymce_js


@admin.register(EducationExperience)
class EducationExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'school', 'discipline',
        'education', 'start_time', 'end_time', 'experience')
    search_fields = 'school',


    class Media:
        js = tinymce_js

<mask token>


@admin.register(Resume)
class ResumeAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'name', 'sex', 'birthday',
        'years_of_service', 'education', 'status', 'company', 'position',
        'advantage', 'career_objective')
    search_fields = 'name', 'years_of_service', 'education'


    class Media:
        js = tinymce_js


@admin.register(CareerObjective)
class CareerObjectiveAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'way', 'position', 'city',
        'expect_salary', 'industry')
    search_fields = 'position',


@admin.register(WorkExperience)
class WorkExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'company', 'position',
        'start_time', 'end_time', 'content')
    search_fields = 'company',


    class Media:
        js = tinymce_js


@admin.register(ProjectExperience)
class ProjectExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'name', 'role', 'url',
        'start_time', 'end_time', 'description', 'performance')
    search_fields = 'project_name',


    class Media:
        js = tinymce_js


@admin.register(EducationExperience)
class EducationExperienceAdmin(admin.ModelAdmin):
    list_display = ('id', 'custom_user', 'school', 'discipline',
        'education', 'start_time', 'end_time', 'experience')
    search_fields = 'school',


    class Media:
        js = tinymce_js

from django.contrib import admin

from applications.personal_center.models import *
from zhiliangku.settings import tinymce_js


@admin.register(Resume)
class ResumeAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        "name",
        "sex",
        "birthday",
        "years_of_service",
        "education",
        "status",
        "company",
        "position",
        "advantage",
        "career_objective",
    )
    search_fields = ("name", 'years_of_service', "education")

    class Media:
        js = tinymce_js


@admin.register(CareerObjective)
class CareerObjectiveAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        'way',
        "position",
        "city",
        "expect_salary",
        "industry",
    )
    search_fields = ('position',)


@admin.register(WorkExperience)
class WorkExperienceAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        "company",
        "position",
        "start_time",
        "end_time",
        "content",
    )
    search_fields = ('company',)

    class Media:
        js = tinymce_js


@admin.register(ProjectExperience)
class ProjectExperienceAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        "name",
        "role",
        "url",
        "start_time",
        "end_time",
        "description",
        "performance",
    )
    search_fields = ('project_name',)

    class Media:
        js = tinymce_js


@admin.register(EducationExperience)
class EducationExperienceAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'custom_user',
        "school",
        "discipline",
        "education",
        "start_time",
        "end_time",
        "experience",
    )
    search_fields = ('school',)

    class Media:
        js = tinymce_js
