from django.contrib import admin
from .models import Post

@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
    list_display = ('name', 'tags', 'slug', 'created_at')
    search_fields = ('name', 'tags')
    prepopulated_fields = {"slug": ("name",)}