Add a FIXME.

This commit is contained in:
Tom Hacohen 2020-02-20 17:34:51 +02:00
parent 0a40a04d3b
commit c3fc00b9d8

View File

@ -175,6 +175,7 @@ class CollectionItemChunkViewSet(viewsets.ViewSet):
serializer = self.serializer_class(data=request.data)
if serializer.is_valid():
try:
# FIXME: actually generate the correct order value. Or alternatively have it null at first and only set it when ommitting to a snapshot
serializer.save(item=col_it, order='abc')
except IntegrityError:
content = {'code': 'integrity_error'}