1👍
✅
If that ListField is the ListField from djangotoolbox, you should consider using SetField instead.
1👍
Crude python way of doing this:
if document.documentID not in visibleDocuments.documents:
visibleDocuments.documents.append(document.documentID)
Source:stackexchange.com