django-ninja-aio-crud 2.3.1__py3-none-any.whl → 2.3.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-ninja-aio-crud
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Django Ninja AIO CRUD - Rest Framework
5
5
  Author: Giuseppe Casillo
6
6
  Requires-Python: >=3.10, <3.15
@@ -25,7 +25,7 @@ Classifier: Framework :: AsyncIO
25
25
  Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
26
26
  Classifier: Topic :: Internet :: WWW/HTTP
27
27
  License-File: LICENSE
28
- Requires-Dist: django-ninja >=1.3.0, <=1.5.1
28
+ Requires-Dist: django-ninja >=1.3.0, <1.6
29
29
  Requires-Dist: joserfc >=1.0.0, <= 1.4.1
30
30
  Requires-Dist: orjson >= 3.10.7, <= 3.11.5
31
31
  Requires-Dist: coverage ; extra == "test"
@@ -1,10 +1,10 @@
1
- ninja_aio/__init__.py,sha256=gBYKYp-SDpKV643SKBBLVlAZrsk3j6ndnV-oOP-Z56U,119
1
+ ninja_aio/__init__.py,sha256=-7mYM97D7Pc3FeiDwYJwTvykYieIbjXNLz-H79OOnOQ,119
2
2
  ninja_aio/api.py,sha256=tuC7vdvn7s1GkCnSFy9Kn1zv0glZfYptRQVvo8ZRtGQ,2429
3
3
  ninja_aio/auth.py,sha256=4sWdFPjKiQgUL1d_CSGDblVjnY5ptP6LQha6XXdluJA,9157
4
4
  ninja_aio/exceptions.py,sha256=_3xFqfFCOfrrMhSA0xbMqgXy8R0UQjhXaExrFvaDAjY,3891
5
5
  ninja_aio/models.py,sha256=aJlo5a64O4o-fB8QESLMUJpoA5kcjRJxPBiAIMxg46k,47652
6
6
  ninja_aio/parsers.py,sha256=e_4lGCPV7zs-HTqtdJTc8yQD2KPAn9njbL8nF_Mmgkc,153
7
- ninja_aio/renders.py,sha256=VtmSliRJyZ6gjyoib8AXMVUBYF1jPNsiceCHujI_mAs,1699
7
+ ninja_aio/renders.py,sha256=89g46NWUT8nmDG-rG0nxUYbAQWhuXcYKrPh7e1r_Fc4,1735
8
8
  ninja_aio/types.py,sha256=nFqWEopm7eoEaHRzbi6EyA9WZ5Cneyd602ilFKypeQI,577
9
9
  ninja_aio/decorators/__init__.py,sha256=cDDHD_9EI4CP7c5eL1m2mGNl9bR24i8FAkQsT3_RNGM,371
10
10
  ninja_aio/decorators/operations.py,sha256=L9yt2ku5oo4CpOLixCADmkcFjLGsWAn-cg-sDcjFhMA,343
@@ -21,7 +21,7 @@ ninja_aio/schemas/helpers.py,sha256=W6IeHi5Tmbjh3FXwDYqjqlLBTVj5uTYq3_JVkNUWayo,
21
21
  ninja_aio/views/__init__.py,sha256=DEzjWA6y3WF0V10nNF8eEurLNEodgxKzyFd09AqVp3s,148
22
22
  ninja_aio/views/api.py,sha256=jJ0Awl9ynuvM6rWetgp9KHTKlnwREyjl2cxCobY4I_4,20158
23
23
  ninja_aio/views/mixins.py,sha256=Jh6BG8Cs823nurVlODlzCquTxKrLH7Pmo5udPqUGZek,11378
24
- django_ninja_aio_crud-2.3.1.dist-info/licenses/LICENSE,sha256=yrDAYcm0gRp_Qyzo3GQa4BjYjWRkAhGC8QRva__RYq0,1073
25
- django_ninja_aio_crud-2.3.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
26
- django_ninja_aio_crud-2.3.1.dist-info/METADATA,sha256=74hdMdbaOSFTfpFXJVgZ_0bydVBGNsO8rnZHOBDTvZg,9047
27
- django_ninja_aio_crud-2.3.1.dist-info/RECORD,,
24
+ django_ninja_aio_crud-2.3.2.dist-info/licenses/LICENSE,sha256=yrDAYcm0gRp_Qyzo3GQa4BjYjWRkAhGC8QRva__RYq0,1073
25
+ django_ninja_aio_crud-2.3.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
26
+ django_ninja_aio_crud-2.3.2.dist-info/METADATA,sha256=mUyyjycFjNldSl4UT1sIne1UvYXcH9deGOhqumkZP3g,9044
27
+ django_ninja_aio_crud-2.3.2.dist-info/RECORD,,
ninja_aio/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Django Ninja AIO CRUD - Rest Framework"""
2
2
 
3
- __version__ = "2.3.1"
3
+ __version__ = "2.3.2"
4
4
 
5
5
  from .api import NinjaAIO
6
6
 
ninja_aio/renders.py CHANGED
@@ -6,6 +6,7 @@ import orjson
6
6
  from django.http import HttpRequest
7
7
  from django.conf import settings
8
8
  from ninja.renderers import BaseRenderer
9
+ from pydantic import AnyUrl
9
10
 
10
11
 
11
12
  class ORJSONRenderer(BaseRenderer):
@@ -38,7 +39,7 @@ class ORJSONRenderer(BaseRenderer):
38
39
  def transform(cls, value):
39
40
  if isinstance(value, bytes):
40
41
  return base64.b64encode(value).decode()
41
- if isinstance(value, (IPv4Address, IPv6Address)):
42
+ if isinstance(value, (IPv4Address, IPv6Address, AnyUrl)):
42
43
  return str(value)
43
44
  if isinstance(value, dict):
44
45
  return {k: cls.transform(v) for k, v in value.items()}