<s> def register ( model_or_iterable , ** options ) : <EOL> """<STR_LIT>""" <EOL> from modeltranslation . translator import translator , TranslationOptions <EOL> def wrapper ( opts_class ) : <EOL> if not issubclass ( opts_class , TranslationOptions ) : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> translator . register ( model_or_iterable , opts_class , ** options ) <EOL> return opts_class <EOL> return wrapper </s>
