Here my API:
@login_required
@api_view(['GET'])
def get_order(request):
order_list = Order.objects.values("user_name",
"user_surname",
"order_date").all()
return HttpResponse(json.dumps([x for x in order_list])
The problem is when i add @login_required, i'm trying to do a Postman GET request using BASIC authentication with username and password.
If i remove the @login_required, i can perform a succesful GET request without auth in Postman.
