MaxST

Results 15 comments of MaxST

@ddahan Hi. FYI #99 I use [django-ratelimit](https://github.com/jsocol/django-ratelimit)

@ddahan `@ratelimit(key='ip', rate='5/m')` Yes, it work `@api.exception_handler(Ratelimited)` Yes, I use it too

A lot of response options from the view. You need to understand what is expected from the view for serialization and caching. An obvious example is when a queryset is...

> Reading your reasons on the other ticket. I'm not sure I agree that it means you couldn't have it as a decorator still. Just make the decorator return a...

@vitalik I fully agree with this. I tried to implement this, but I ran into a problem: for serialization, you need to know the response, which is in the Operation...

Hmm. I understand. `_ninja_contribute_to_operation`

@vitalik You can look at my [commit](https://github.com/vitalik/django-ninja/pull/346/commits/e3d90d5c289e94e8cf0d1ff6adcbe8901a411dc5), would such a check be enough?

@vitalik Can you take another look?

Will this work? ```python class ItemBase(ModelSchema): is_favorite: bool = None class Config: model = Item model_fields = ( "id", "slug", "name", "image_path", "length_in_mn", ) class ItemInBasesSchema(ItemBase, ModelSchema): class Config(ItemBase.Config): model_fields...

@ddahan yep, try adding `ModelSchema` as a second parent.