blob: 9e5b4e80e60f212c6aa1bd0b13f5c4b28d400e2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from django.contrib import admin
from .models import Post
from utils.widgets import AdminImageWidget, LGEntryForm
from django.contrib.auth.models import User
from django.contrib.admin import SimpleListFilter
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
form = LGEntryForm
list_display = ('title', 'admin_url', 'author', 'date_last_pub', 'post_type', 'update_frequency', 'needs_update', 'days_overdue')
search_fields = ['title']
list_filter = ['needs_update', 'author', 'post_type']
class Media:
js = ('image-loader.js', 'next-prev-links.js')
css = {
"all": ("my_styles.css",)
}
|