summaryrefslogtreecommitdiff
path: root/app/resume/admin.py
blob: 8646ccab5b7818584dce4fe8f5542ec5284d0312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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'
            )
        }
        ),
    )