add linters
This commit is contained in:
38
cv/admin.py
38
cv/admin.py
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user