You have to make the distinct call on the cursor returned from a find instead of on the collection:
tags = db.mycoll.find({"category": "movie"}).distinct("tags")
You have to make the distinct call on the cursor returned from a find instead of on the collection:
tags = db.mycoll.find({"category": "movie"}).distinct("tags")