def get_model_by_field(self, name):
        """
        Find the :class:`TranslatedFieldsModel` that contains the given field.
        """
        try:
            return self._fields_to_model[name]
        except KeyError:
            raise FieldError("Translated field does not exist: '{0}'".format(name))
def get_model_by_field ( self , name ) : try : return self . _fields_to_model [ name ] except KeyError : raise FieldError ( "Translated field does not exist: '{0}'" . format ( name ) )
Find the :class:`TranslatedFieldsModel` that contains the given field.