Source

django-russian-admin / russian_admin / sites.py

Full commit
# -*- coding: utf-8 -*-
from django.contrib.admin import sites
from russian_admin.breadcrumbs import I18nLabel
from russian_admin.admin import ModelAdmin

class AdminSite(sites.AdminSite):

    app_index_template = 'russian_admin/admin/app_index.html'

    def register(self, model_or_iterable, admin_class=None, **options):
        if admin_class is None:
            # по умолчанию используем наш ModelAdmin
            admin_class = ModelAdmin

        return super(AdminSite, self).register(model_or_iterable, admin_class, **options)


site = AdminSite()

site.register = I18nLabel(site.register).register()
site.app_index = I18nLabel(site.app_index).index()