hiring: вакансии и найм, HR-портал
Модель вакансий, флоу рекрутинга и панели HR-портала (заявки/вакансии). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+14
-1
@@ -1,7 +1,7 @@
|
||||
from django.contrib import admin
|
||||
from unfold.admin import ModelAdmin
|
||||
|
||||
from apps.hiring.models import HiringRequest, InternAccount
|
||||
from apps.hiring.models import HiringRequest, InternAccount, Vacancy
|
||||
|
||||
|
||||
@admin.register(InternAccount)
|
||||
@@ -14,6 +14,19 @@ class InternAccountAdmin(ModelAdmin):
|
||||
readonly_fields = ['assigned_to', 'created_at', 'updated_at', 'uuid']
|
||||
|
||||
|
||||
@admin.register(Vacancy)
|
||||
class VacancyAdmin(ModelAdmin):
|
||||
list_display = [
|
||||
'title', 'status', 'priority', 'pharmacy', 'department',
|
||||
'candidates_count', 'opened_at', 'created_by',
|
||||
]
|
||||
list_filter = ['status', 'priority', 'user_location_type']
|
||||
search_fields = ['title', 'description']
|
||||
list_select_related = ['post', 'pharmacy', 'department', 'location', 'created_by']
|
||||
ordering = ['-opened_at', '-created_at']
|
||||
readonly_fields = ['created_at', 'updated_at', 'uuid']
|
||||
|
||||
|
||||
@admin.register(HiringRequest)
|
||||
class HiringRequestAdmin(ModelAdmin):
|
||||
list_display = [
|
||||
|
||||
Reference in New Issue
Block a user