muffin-rest 5.1.5__py3-none-any.whl → 5.1.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
  import operator
5
5
  from typing import Any, Callable, Tuple, Type, Union, cast
6
6
 
7
- from peewee import Field, ModelSelect
7
+ from peewee import ColumnBase, Field, ModelSelect
8
8
 
9
9
  from muffin_rest.filters import Filter, Filters
10
10
 
@@ -37,7 +37,7 @@ class PWFilter(Filter):
37
37
 
38
38
  def query(self, qs: ModelSelect, column: Field, *ops: Tuple, **_) -> ModelSelect:
39
39
  """Filter a query."""
40
- if isinstance(column, Field):
40
+ if isinstance(column, ColumnBase):
41
41
  return cast(ModelSelect, qs.where(*[op(column, val) for op, val in ops]))
42
42
 
43
43
  return qs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: muffin-rest
3
- Version: 5.1.5
3
+ Version: 5.1.6
4
4
  Summary: The package provides enhanced support for writing REST APIs with Muffin framework
5
5
  Home-page: https://github.com/klen/muffin-rest
6
6
  License: MIT
@@ -12,7 +12,7 @@ muffin_rest/mongo/utils.py,sha256=RZdAiKaTsgaFz8WbIPI_sjjVDsF_VmPu5Agzp5mpbvY,39
12
12
  muffin_rest/openapi.py,sha256=XNhU4EffbKvFKr1HMCqFM-ZrukPqLyZwm3aJe2dNs40,8770
13
13
  muffin_rest/options.py,sha256=PcrGY1qq3exgOdeJp8tYYC2V83c5vVMQrARgUkxrNTM,1927
14
14
  muffin_rest/peewee/__init__.py,sha256=94DSj_ftT6fbPksHlBv40AH2HWaiZommUFOMN2jd9a4,129
15
- muffin_rest/peewee/filters.py,sha256=I_oZa18j0hi0CnVM-U5IpkwkKZ24NYdx9XkdlDiFYZI,2315
15
+ muffin_rest/peewee/filters.py,sha256=qjdzXx0rZOwDGGcVoso1QQL4hrSzUjqEdwdtt8vBhes,2332
16
16
  muffin_rest/peewee/handler.py,sha256=ipIcOmCgHpqWJevWHm9xxZ2GsZPUV7dc9QCmu7bvaLM,5325
17
17
  muffin_rest/peewee/openapi.py,sha256=ZZuh7nJVuK9cTJqtOJ_XASe9iJgter-xIjj9YJ8xszI,1111
18
18
  muffin_rest/peewee/options.py,sha256=02E8yOXHaHl0smKV8qI6er7YS3IcuroDPl7GR_YuLjo,1489
@@ -30,7 +30,7 @@ muffin_rest/sqlalchemy/types.py,sha256=JnIw44XJ2ClWzOv-mTUrvFw1JPxAlvdX_jf7r4zau
30
30
  muffin_rest/swagger.html,sha256=2uGLu_KpkYf925KnDKHBJmV9pm6OHn5C3BWScESsUS8,1736
31
31
  muffin_rest/types.py,sha256=vy55ShzMcvs9zXjFpdjWlagv09dMrcmxb2-U4hTL3NM,521
32
32
  muffin_rest/utils.py,sha256=-nf6WCGFlVoOcBT-n6eiIpbZSmPY8ynm2UlMelgmn8o,2059
33
- muffin_rest-5.1.5.dist-info/LICENSE,sha256=xHPkOZhjyKBMOwXpWn9IB_BVLjrrMxv2M9slKkHj2hM,1082
34
- muffin_rest-5.1.5.dist-info/METADATA,sha256=3PctsieZjB1spGYPjeyzz8QpkATgGE0t44yztujeQHA,4126
35
- muffin_rest-5.1.5.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
36
- muffin_rest-5.1.5.dist-info/RECORD,,
33
+ muffin_rest-5.1.6.dist-info/LICENSE,sha256=xHPkOZhjyKBMOwXpWn9IB_BVLjrrMxv2M9slKkHj2hM,1082
34
+ muffin_rest-5.1.6.dist-info/METADATA,sha256=OFek3VsTJNsILkrP6PZ394ng1bv6WWoYXYOvwr3VqmA,4126
35
+ muffin_rest-5.1.6.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
36
+ muffin_rest-5.1.6.dist-info/RECORD,,