def admin_translationinline(model, inline_class=admin.StackedInline, **kwargs):
 kwargs[u'extra'] = 1
 kwargs[u'max_num'] = len(settings.LANGUAGES)
 kwargs[u'model'] = model
 return type(str((model.__class__.__name__ + u'Inline')), (inline_class,), kwargs)

def admin_translationinline ( model , inline_class = admin . StackedInline , ** kwargs ) : kwargs [ u'extra' ] = 1 kwargs [ u'max_num' ] = len ( settings . LANGUAGES ) kwargs [ u'model' ] = model return type ( str ( ( model . __class__ . __name__ + u'Inline' ) ) , ( inline_class , ) , kwargs )
returns a new inline type suitable for the django administration:: from django .