Skip to content
Snippets Groups Projects
Commit 734e60a4 authored by Valentin Rigal's avatar Valentin Rigal Committed by Erwan Rouchet
Browse files

Improve API docs

parent ef4db8fb
No related branches found
No related tags found
1 merge request!2276Dataset unique elements
......@@ -542,6 +542,10 @@ class DatasetSerializer(serializers.ModelSerializer):
set_elements = DatasetSetsCountField(
help_text="Distribution of elements in sets. This value is set to null when listing multiple datasets.",
)
unique_elements = serializers.BooleanField(
default=True,
help_text="Ensures that an element is only present in a single set at a time.",
)
def validate_state(self, state):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment