fastgenerateapi 1.1.24__py2.py3-none-any.whl → 1.1.25__py2.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.

Potentially problematic release.


This version of fastgenerateapi might be problematic. Click here for more details.

@@ -8,7 +8,7 @@
8
8
  # d8888P
9
9
 
10
10
 
11
- VERSION = (1, 1, 24)
11
+ VERSION = (1, 1, 25)
12
12
 
13
13
  __version__ = '.'.join(map(str, VERSION))
14
14
 
@@ -227,7 +227,7 @@ class BaseView(BaseMixin, ResponseMixin, ToolMixin, DBModelMixin):
227
227
  return result
228
228
 
229
229
  def gen_get_one_response_schema(self):
230
- if not hasattr(self, "get_one_schema"):
230
+ if not hasattr(self, "get_one_schema") or not self.get_one_schema:
231
231
  get_one_schema_include = []
232
232
  if hasattr(self, "is_with_prefetch") and self.is_with_prefetch and self.prefetch_related_fields:
233
233
  for key, value in self.prefetch_related_fields.items():
@@ -247,8 +247,7 @@ class BaseView(BaseMixin, ResponseMixin, ToolMixin, DBModelMixin):
247
247
  :return:
248
248
  """
249
249
  self.gen_get_one_response_schema()
250
- if not hasattr(self, "get_one_response_schema"):
251
- self.get_one_response_schema_factory = response_factory(self.get_one_schema, name="GetOne")
250
+ self.get_one_response_schema_factory = response_factory(self.get_one_schema, name="GetOne")
252
251
 
253
252
  return self.get_one_response_schema_factory
254
253
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastgenerateapi
3
- Version: 1.1.24
3
+ Version: 1.1.25
4
4
  Summary: FastAPIView Class View
5
5
  Author: ShiLiang
6
6
  Author-email: 2509144896@qq.com
@@ -1,8 +1,8 @@
1
1
  fastgenerateapi/__init__.py,sha256=eh2qtp7FbjrgaRX5b3H3UWpasFdNHbVFqLUhpqVbaTU,1287
2
- fastgenerateapi/__version__.py,sha256=eW8CjgDcaG7vlxuQUvxU_3udMyEAq-pece0UKXkKj_M,497
2
+ fastgenerateapi/__version__.py,sha256=tP-SI9FJ5U3gRsZCPk5M1SPJbgdtN00luV5I6eTbE_k,497
3
3
  fastgenerateapi/api_view/__init__.py,sha256=zkaTX5JxsNfjF-dFeEbHfUB58vhPMjm6Iiqx9HgJOrY,14
4
4
  fastgenerateapi/api_view/api_view.py,sha256=mfD8GB-hnyI2XO3tkSOlEa2FfBLdq0_Wqvp8gFrXFKU,1160
5
- fastgenerateapi/api_view/base_view.py,sha256=Ld3aagahoUz13Nxc8ranRywjCwFaY1DLEFEr4WVIC2Q,11286
5
+ fastgenerateapi/api_view/base_view.py,sha256=0Ll7gDdORhtY2SU2mC_CxprZb0S_co07VMZd1SchqyA,11251
6
6
  fastgenerateapi/api_view/create_view.py,sha256=tjCpty56wZZB6b2Hf1qsNuDUyuZzWti1ShXoxpuIgtM,4918
7
7
  fastgenerateapi/api_view/delete_filter_view.py,sha256=j3zivcB7Ul3QX2BwHnumEx6bxAUliATYvPae2iLeIbU,3312
8
8
  fastgenerateapi/api_view/delete_tree_view.py,sha256=AEQVpLjhSdQfQD5Mp1fQrAkIafMyf3UtLUqfRMItrfg,4430
@@ -104,8 +104,8 @@ fastgenerateapi/utils/snowflake.py,sha256=GiFVkE10sPiqJ094sMfrPsaV7Y9Y3c1djrSfgs
104
104
  fastgenerateapi/utils/str_util.py,sha256=c-jUlCFw-Dz4W1W9Jc1TqGZw3JXu-qN5ovnE6fjc9j0,3445
105
105
  fastgenerateapi/utils/swagger_to_js.py,sha256=pPPTag6TYtxdbKMHD3m8lJvc8Gv9HC97CGHt4esU1-E,530
106
106
  script/__init__.py,sha256=26UWatnbm6ZIwQMuu9NNzQ0IW1ACO4Oe9caModuTpWM,4
107
- fastgenerateapi-1.1.24.dist-info/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
108
- fastgenerateapi-1.1.24.dist-info/METADATA,sha256=cuSzwftvHIfxmXoxJo8_Y8HwXgMxoIgj-rLf6pXwf44,6025
109
- fastgenerateapi-1.1.24.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
110
- fastgenerateapi-1.1.24.dist-info/top_level.txt,sha256=CW2SlpYjTRdacF-5ufnPMtwpYcR0XYn_bDxa2ZrrTBI,23
111
- fastgenerateapi-1.1.24.dist-info/RECORD,,
107
+ fastgenerateapi-1.1.25.dist-info/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
108
+ fastgenerateapi-1.1.25.dist-info/METADATA,sha256=kfv7BSqouiXL4bM0D2wxbfbnrB6ga0eVnZSnX3iCZLU,6025
109
+ fastgenerateapi-1.1.25.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
110
+ fastgenerateapi-1.1.25.dist-info/top_level.txt,sha256=CW2SlpYjTRdacF-5ufnPMtwpYcR0XYn_bDxa2ZrrTBI,23
111
+ fastgenerateapi-1.1.25.dist-info/RECORD,,