Source

flat_forum / flat_forum / admin.py

from django.contrib import admin
from flat_forum import models

class PostAdmin(admin.ModelAdmin):
    list_display = ('subject', 'created', 'posted_by', 'reply_to',)
    date_hierarchy = 'created'

    def rescan_tags(self, request, queryset):
        for obj in queryset:
            # Report on differences?
            obj.tags.add(*models.Post.objects.tags_for_post(obj))
    rescan_tags.short_description = 'Auto-tag selected posts'
    actions = [rescan_tags,]

admin.site.register(models.Post, PostAdmin)
admin.site.register(models.Profile)