<s> from cms . admin . placeholderadmin import PlaceholderAdminMixin , FrontendEditableAdminMixin <EOL> from cms . test_utils . project . placeholderapp . models import ( <EOL> Example1 , MultilingualExample1 , <EOL> TwoPlaceholderExample , CharPksExample <EOL> ) <EOL> from cms . test_utils . project . placeholderapp . exceptions import PlaceholderHookException <EOL> from django . contrib import admin <EOL> from hvad . admin import TranslatableAdmin <EOL> class ExampleAdmin ( FrontendEditableAdminMixin , PlaceholderAdminMixin , admin . ModelAdmin ) : <EOL> frontend_editable_fields = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> class CharPksAdmin ( FrontendEditableAdminMixin , PlaceholderAdminMixin , admin . ModelAdmin ) : <EOL> frontend_editable_fields = ( "<STR_LIT>" , ) <EOL> def post_copy_plugins ( self , * args , ** kwargs ) : <EOL> raise PlaceholderHookException ( '<STR_LIT>' ) <EOL> def post_move_plugin ( self , * args , ** kwargs ) : <EOL> raise PlaceholderHookException ( '<STR_LIT>' ) <EOL> class TwoPlaceholderExampleAdmin ( PlaceholderAdminMixin , admin . ModelAdmin ) : <EOL> pass <EOL> class MultilingualAdmin ( FrontendEditableAdminMixin , TranslatableAdmin , <EOL> PlaceholderAdminMixin , admin . ModelAdmin ) : <EOL> frontend_editable_fields = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> admin . site . register ( Example1 , ExampleAdmin ) <EOL> admin . site . register ( CharPksExample , CharPksAdmin ) <EOL> admin . site . register ( TwoPlaceholderExample , TwoPlaceholderExampleAdmin ) <EOL> admin . site . register ( MultilingualExample1 , MultilingualAdmin ) </s>
