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