postman data
I send this form-data in postman
but request.data empty
my code:
class DentalClientMedicalRecordCreateAPIView(APIView):
def post(self, request, *args, **kwargs):
try:
print(request.data)
branch = request.user.branch
data = request.data
# Extract nested data
tooth_service_data = request.data.get('tooth_service', [])
x_ray_images_data = request.FILES.getlist('x_ray_image', [])
print(tooth_service_data)
response
how to I get this multiple related entries
New contributor
Ziyodulla Abdukarimov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.