[Answered ]-Adding only unique values to a table array in django

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)

Leave a comment