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') list_filter = ['model_name'] class Media: js = ('next-prev-links.js',)