Commit f0ca0b86 authored by Cherish Magpayo's avatar Cherish Magpayo

Registered announcement model in announcement admin and customized announcement admin list view

parent 7c0202ab
from django.contrib import admin from django.contrib import admin
# Register your models here. # Register your models here.
from .models import Announcement
class AnnouncementAdmin(admin.ModelAdmin):
model = Announcement
search_fields = ('announcement_title',)
list_display = ('announcement_title', 'pub_date',)
list_filter = ('announcement_title', 'pub_date',)
admin.site.register(Announcement, AnnouncementAdmin)
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