diff options
author | luxagraf <sng@luxagraf.net> | 2025-01-03 18:46:40 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2025-01-03 18:46:40 -0600 |
commit | fe7d43f308bbc3953d4a88480b8088d12cbcb0b6 (patch) | |
tree | 3aa10d1ac8e041ad2b78a5acf6b29febad6a5fe3 /bak/unused_apps/resume/admin.py | |
parent | df3bc581e496412ef8c263dbf1cfe00f184e4e59 (diff) |
archived old not used apps
Diffstat (limited to 'bak/unused_apps/resume/admin.py')
-rw-r--r-- | bak/unused_apps/resume/admin.py | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/bak/unused_apps/resume/admin.py b/bak/unused_apps/resume/admin.py new file mode 100644 index 0000000..8646cca --- /dev/null +++ b/bak/unused_apps/resume/admin.py @@ -0,0 +1,59 @@ +from django.contrib import admin + +from utils.widgets import LGEntryForm +from .models import Publisher, PubItem, Job, Resume + + +@admin.register(Job) +class JobAdmin(admin.ModelAdmin): + pass + + +@admin.register(Resume) +class ResumeAdmin(admin.ModelAdmin): + fieldsets = ( + ('', { + 'fields': ( + 'title', + 'profile', + 'skills', + 'jobs', + 'slug', + ), + 'classes': ( + 'show', + 'extrapretty', + 'wide' + ) + } + ), + ) + + +@admin.register(Publisher) +class PublisherAdmin(admin.ModelAdmin): + pass + + +@admin.register(PubItem) +class PubItemAdmin(admin.ModelAdmin): + form = LGEntryForm + list_display = ('title', 'pub_date', 'publisher', 'admin_link') + fieldsets = ( + ('', { + 'fields': ( + 'title', + 'body_markdown', + 'slug', + 'pub_date', + 'url', + 'publisher', + ), + 'classes': ( + 'show', + 'extrapretty', + 'wide' + ) + } + ), + ) |