django-ninja-aio-crud 2.0.0rc3__py3-none-any.whl → 2.0.0rc4__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.0.0rc3
3
+ Version: 2.0.0rc4
4
4
  Summary: Django Ninja AIO CRUD - Rest Framework
5
5
  Author: Giuseppe Casillo
6
6
  Requires-Python: >=3.10
@@ -1,4 +1,4 @@
1
- ninja_aio/__init__.py,sha256=JcpcShlXZ4BnQ_O8zXApC5ZgzwxHrruInN3QK3tZgps,123
1
+ ninja_aio/__init__.py,sha256=mZOU2ytjdN2b6eppwLpoRlyeR7mLoP-Gco7Xtoe7aIc,123
2
2
  ninja_aio/api.py,sha256=SS1TYUiFkdYjfJLVy6GI90GOzvIHzPEeL-UcqWFRHkM,1684
3
3
  ninja_aio/auth.py,sha256=8jaEp7oEJvUUB9EuyE2fOYk-khyAaekT3i80E7AbgOA,5101
4
4
  ninja_aio/decorators.py,sha256=gswkwl1zWSpW8VxGCe8MlgXcHMg6Y7V1f2ertey9Tjo,5522
@@ -7,7 +7,7 @@ ninja_aio/models.py,sha256=aJlo5a64O4o-fB8QESLMUJpoA5kcjRJxPBiAIMxg46k,47652
7
7
  ninja_aio/parsers.py,sha256=e_4lGCPV7zs-HTqtdJTc8yQD2KPAn9njbL8nF_Mmgkc,153
8
8
  ninja_aio/renders.py,sha256=5TdSQI8e4x3Gb2tAw1AaxrbU-asVjf2chWMr8x2Tt80,1485
9
9
  ninja_aio/types.py,sha256=TJSGlA7bt4g9fvPhJ7gzH5tKbLagPmZUzfgttEOp4xs,468
10
- ninja_aio/views.py,sha256=u6WVXvErF3DAOTONTH_EhSg-5qhFBhtR4L2lNrt00qo,16331
10
+ ninja_aio/views.py,sha256=h_embl52o5WOVbhbB05vkNKEGOm-s4PvdAjy81-6ISw,16424
11
11
  ninja_aio/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  ninja_aio/helpers/api.py,sha256=F6SlvNCEEAm-fzqpTB5r0O9gqhbP0dvyieNcG1JlKCw,20181
13
13
  ninja_aio/helpers/query.py,sha256=tE8RjXvSig-WB_0LRQ0LqoE4G_HMHsu0Na5QzTNIm6U,4262
@@ -15,7 +15,7 @@ ninja_aio/schemas/__init__.py,sha256=iLBwHg0pmL9k_UkIui5Q8QIl_gO4fgxSv2JHxDzqnSI
15
15
  ninja_aio/schemas/api.py,sha256=-VwXhBRhmMsZLIAmWJ-P7tB5klxXS75eukjabeKKYsc,360
16
16
  ninja_aio/schemas/generics.py,sha256=frjJsKJMAdM_NdNKv-9ddZNGxYy5PNzjIRGtuycgr-w,112
17
17
  ninja_aio/schemas/helpers.py,sha256=al1G5-CdB9CF3eIPdZcUSE7vKRJiTU5g1ltoPhI2Onw,2622
18
- django_ninja_aio_crud-2.0.0rc3.dist-info/licenses/LICENSE,sha256=yrDAYcm0gRp_Qyzo3GQa4BjYjWRkAhGC8QRva__RYq0,1073
19
- django_ninja_aio_crud-2.0.0rc3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
20
- django_ninja_aio_crud-2.0.0rc3.dist-info/METADATA,sha256=_srbK-mfXF3zuPPmP1YK2zssec21f2W4CnowtGgHgR4,8675
21
- django_ninja_aio_crud-2.0.0rc3.dist-info/RECORD,,
18
+ django_ninja_aio_crud-2.0.0rc4.dist-info/licenses/LICENSE,sha256=yrDAYcm0gRp_Qyzo3GQa4BjYjWRkAhGC8QRva__RYq0,1073
19
+ django_ninja_aio_crud-2.0.0rc4.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
20
+ django_ninja_aio_crud-2.0.0rc4.dist-info/METADATA,sha256=OQOjGEI0FOKiWPALNWbmdK__komISuMhvMeflX69QxQ,8675
21
+ django_ninja_aio_crud-2.0.0rc4.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.0.0-rc3"
3
+ __version__ = "2.0.0-rc4"
4
4
 
5
5
  from .api import NinjaAIO
6
6
 
ninja_aio/views.py CHANGED
@@ -158,6 +158,7 @@ class APIViewSet:
158
158
 
159
159
  model: ModelSerializer | Model
160
160
  api: NinjaAPI
161
+ router_tag: str = ""
161
162
  schema_in: Schema | None = None
162
163
  schema_out: Schema | None = None
163
164
  schema_update: Schema | None = None
@@ -189,7 +190,9 @@ class APIViewSet:
189
190
  self.path_schema = self._generate_path_schema()
190
191
  self.filters_schema = self._generate_filters_schema()
191
192
  self.model_verbose_name = self.model._meta.verbose_name.capitalize()
192
- self.router_tag = self.model_verbose_name
193
+ self.router_tag = (
194
+ self.model_verbose_name if not self.router_tag else self.router_tag
195
+ )
193
196
  self.router = Router(tags=[self.router_tag])
194
197
  self.path = "/"
195
198
  self.get_path = ""