I'm trying to save the canvas object to my django model field file but it says "'Canvas' object has no attribute '_committed'".
p.setTitle(f"{patient.first_name} {patient.last_name}'s Report")
p.showPage()
p.save()
pdf:bytes =buffer.getvalue()
buffer.close()
response.write(pdf)
r = Result.objects.filter(score="12").update_or_create(file=p)
Can anyone help me out with this issue?