Commit ff696d23 authored by Richie Villareal's avatar Richie Villareal

adjusted admins

parent 16fec26a
from django.contrib import admin from django.contrib import admin
from .models import Reaction,Announcement
# Register your models here. # Register your models here.
class ReactionInLine(admin.TabularInline):
model = Reaction
extra = 1
class AnnouncementAdmin(admin.ModelAdmin):
inlines = [ReactionInLine,]
list_display = ('title', 'author', 'pub_datetime', 'body')
search_fields = ('title', 'author', 'body')
list_filter = ('author', 'pub_datetime')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment