Updated the announcement model to display the pub date

parent a383327d
...@@ -4,5 +4,7 @@ from .models import Announcement ...@@ -4,5 +4,7 @@ from .models import Announcement
class AnnouncementAdmin(admin.ModelAdmin): class AnnouncementAdmin(admin.ModelAdmin):
model = Announcement model = Announcement
list_display = ('announcement_title', 'pub_date')
admin.site.register(Announcement, AnnouncementAdmin) admin.site.register(Announcement, AnnouncementAdmin)
\ No newline at end of file
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