First commite
This commit is contained in:
17
cv/admin.py
Normal file
17
cv/admin.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from django.contrib import admin
|
||||
from .models import Profile, Experience, SkillGroup
|
||||
|
||||
@admin.register(Profile)
|
||||
class ProfileAdmin(admin.ModelAdmin):
|
||||
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',)
|
||||
|
||||
@admin.register(SkillGroup)
|
||||
class SkillGroupAdmin(admin.ModelAdmin):
|
||||
list_display = ('profile', 'group',)
|
||||
list_display_links = ('profile', 'group',)
|
||||
Reference in New Issue
Block a user