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) serializer = self.serializer_class(data=request.data)
if serializer.is_valid(): if serializer.is_valid():
try: 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') serializer.save(item=col_it, order='abc')
except IntegrityError: except IntegrityError:
content = {'code': 'integrity_error'} content = {'code': 'integrity_error'}