summaryrefslogtreecommitdiff
path: root/app/normalize/admin.py
blob: 9edbab4b213b019dac58097f5178bf8150dc02ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.contrib import admin

from utils.widgets import AdminImageWidget, LGEntryForm

from .models import RelatedPost

@admin.register(RelatedPost)
class RelatedPostAdmin(admin.ModelAdmin):
    list_display = ('title', 'slug', 'pub_date', 'model_name', 'post_type')
    list_filter = ['model_name']
    search_fields = ['title', 'slug']

    class Media:
        js = ('next-prev-links.js',)