ddzyx
ddzyx
> a quick search reveals that django-ninja has no mention of caching. > > But you can use basic caching within the api-functions as described in the django docs: https://docs.djangoproject.com/en/4.1/topics/cache/#basic-usage...
> well you define your response as a list: > > ```python > response=List[CopywritingListSchemaOut] > ``` > > so list is expected > > if you need to that structure...
> ```python > return {"msg": "success", "code": 200, "data": data} > ``` Tested and still the same error,code show as below。 ```Python class CopywritingListSchemaOut(ModelSchema): parent_category_id: int = Field(None, alias="parent_category_id") class...