diff options
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' + ) + } + ), + ) |