Source

djangocong_2011 / core / admin.py

from django.contrib import admin
from modeltranslation.admin import TranslationAdmin

from basic.blog.admin import CategoryAdmin, PostAdmin
from basic.blog.models import Category, Post


class CategoryTranslationAdmin(CategoryAdmin, TranslationAdmin):
    pass


class PostTranslationAdmin(PostAdmin, TranslationAdmin):
    pass


admin.site.unregister(Category)
admin.site.unregister(Post)
admin.site.register(Category, CategoryTranslationAdmin)
admin.site.register(Post, PostTranslationAdmin)