We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab12eab + 0a2a718 commit 0a5bac7Copy full SHA for 0a5bac7
1 file changed
contentcuration/contentcuration/viewsets/contentnode.py
@@ -689,6 +689,11 @@ def decode_cursor(self, request):
689
if value is None:
690
return None
691
692
+ try:
693
+ value = int(value)
694
+ except ValueError:
695
+ raise ValidationError("lft must be an integer but an invalid value was given.")
696
+
697
return Cursor(offset=0, reverse=False, position=value)
698
699
def encode_cursor(self, cursor):
0 commit comments