With function-based views you can restrict a view to some HTTP methods like so:
@api_view(["GET", "POST"])
def view(request):
...
which is neat and explicit. Is there a native way to do the same for a generic view without resorting to if self.request.method == ... conditions?
ListCreateAPIView