bogdandm

Results 4 issues of bogdandm

Migrate from python setup.py test to tox to simplify test env setup and rid of deprecation warning about setup.py test

internal

There is few default classes like `IsAuthorized` but there is no reason to create custom method: ``` def is_authorized(self, *args, **kwargs): return IsAuthorized.has_permission(*args, **kwargs) ``` Istead just add check of...

https://www.django-rest-framework.org/api-guide/permissions/#object-level-permissions ``` def get_object(self): obj = get_object_or_404(self.get_queryset(), pk=self.kwargs["pk"]) self.check_object_permissions(self.request, obj) return obj ``` So `get_object` already has check_permissions call. So it would be nice to impelement `has_object_permission` (https://github.com/encode/django-rest-framework/blob/master/rest_framework/permissions.py#L112). It will...

Current CLI class has a lot of boiler plate code and based on obsolete ArgParser. So it would be easeir to maintain it if it will be rewritten to some...

internal