Commit fb6fbb74 authored by Norberto Tadeo's avatar Norberto Tadeo 😔

added some things to forum

parent 5e194148
...@@ -5,10 +5,9 @@ from .models import Post ...@@ -5,10 +5,9 @@ from .models import Post
class ForumAdmin(admin.ModelAdmin): class ForumAdmin(admin.ModelAdmin):
model = Post model = Post
search_fields=('pub_date',) search_fields=('pub_date','post_title',)
list_display=('pub_date',) list_display=('pub_date','post_title',)
list_filter=('pub_date',) list_filter=('pub_date','post_title',)
admin.site.register(Post, ForumAdmin) admin.site.register(Post, ForumAdmin)
# Register your models here. # Register your models here.
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