def gets_by_random(cls, *expressions, **expression_dict): deprecation( # pragma: no cover 'The class method Model.gets_by_random is deprecated, ' 'please use Model.get_multi_by_random!') return cls.get_multi_by_random( *expressions, **expression_dict) # noqa pragma: no cover
def gets_by(cls, *expressions, **expression_dict): deprecation('The class method Model.gets_by is deprecated, ' 'please use Model.get_multi_by!') return cls.get_multi_by(*expressions, **expression_dict)
def gets(cls, idents, filter_none=True): deprecation('The class method Model.gets is deprecated, ' 'please use Model.get_multi!') return cls.get_multi(idents, filter_none=filter_none)