add linters

This commit is contained in:
Pavel Sobolev
2025-11-13 01:32:17 +03:00
parent c4bb087aaf
commit d5ff05abdb
28 changed files with 2070 additions and 331 deletions

View File

@@ -1,17 +1,41 @@
"""Админские классы Django для управления моделями резюме."""
from django.contrib import admin
from .models import Profile, Experience, SkillGroup
from .models import Experience, Profile, SkillGroup
@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):
list_display = ('role', 'full_name', 'gender')
list_display_links = ('full_name','role',)
"""Админка для модели профиля."""
list_display = ("role", "full_name", "gender")
list_display_links = (
"full_name",
"role",
)
@admin.register(Experience)
class ExperienceAdmin(admin.ModelAdmin):
list_display = ('profile', 'company', 'start_date', 'end_date')
list_display_links = ('profile', 'company',)
"""Админка для модели опыта работы."""
list_display = ("profile", "company", "start_date", "end_date")
list_display_links = (
"profile",
"company",
)
@admin.register(SkillGroup)
class SkillGroupAdmin(admin.ModelAdmin):
list_display = ('profile', 'group',)
list_display_links = ('profile', 'group',)
"""Админка для модели групп навыков."""
list_display = (
"profile",
"group",
)
list_display_links = (
"profile",
"group",
)