<s> from __future__ import unicode_literals <EOL> from django . contrib . admin import AdminSite , ModelAdmin , TabularInline <EOL> from admin_enhancer import admin as enhanced_admin <EOL> from . models import Author , Book , Character , Theme <EOL> site = AdminSite ( ) <EOL> class EnhancedModelAdmin ( enhanced_admin . EnhancedModelAdminMixin , ModelAdmin ) : <EOL> pass <EOL> class CharacterInline ( enhanced_admin . EnhancedAdminMixin , TabularInline ) : <EOL> model = Character <EOL> class BookAdmin ( EnhancedModelAdmin ) : <EOL> inlines = ( CharacterInline , ) <EOL> filter_horizontal = ( '<STR_LIT>' , ) <EOL> site . register ( Author , EnhancedModelAdmin ) <EOL> site . register ( Book , BookAdmin ) <EOL> site . register ( Theme , EnhancedModelAdmin ) </s>
