8 lines
264 B
Python
8 lines
264 B
Python
from django.contrib import admin
|
|
from .models import Post
|
|
|
|
@admin.register(Post)
|
|
class PostAdmin(admin.ModelAdmin):
|
|
list_display = ('author', 'created_at', 'intent')
|
|
list_filter = ('created_at', 'intent')
|
|
search_fields = ('content', 'author__username') |