Gennady Chibisov

Results 40 comments of Gennady Chibisov

Nesting feature only applies to queryset. `parents_query_lookups` just adds lookups to view's queryset. There is no way drf-extensions would do that for write requests. You have to extend default view's...

> This was changed after my second comment, as I noted that there are more headers than just If-Match that can return a "428 Precondition Required" response. The same status...

I believe that extensible DefaultRoute should be in core of DRF.

I don't remember why, but you can change implementation and watch if there are any failing tests. And why don't you like it?

Thank you @kevin-brown.

Hi @frwickst. I think we should somehow reuse default [get_lookup_regex](https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/routers.py#L216). Then you could specify regex of your pk lookup right in the viewset: ``` python class MyModelViewSet(mixins.RetrieveModelMixin, viewsets.GenericViewSet): lookup_value_regex =...

Hi @maryokhin Why do you think you break DRY by extending `UserViewSet`? For example, you could iteratively create new viewsets based on `UserViewSet` and register them in router (example below...

@pbdeuchler, please, close the issue if @maryokhin's comment helped.

You can try to extend nested viewsets like it explained here http://chibisov.github.io/drf-extensions/docs/#usage-with-generic-relations