Fixed reference to section type

This commit is contained in:
Tris Forster 2023-03-01 11:21:06 +11:00
parent 70aa7ae3a3
commit a3d8cf0a21

View File

@ -389,7 +389,7 @@ class DocumentAnnotateView(DocumentMixin, DetailView):
for tag, start, end in data:
#pages.sort()
#end = pages[-1] if len(pages) > 1 else None
o = self.object.sections.create(tag=tag, type=models.Section.TYPE_INSTRUMENT, start=start, end=end)
o = self.object.sections.create(tag=tag, start=start, end=end)
return HttpResponse(status=204)