def get(self): roles = Role.find({'_id': {'$ne': 1}}) self.finish(dict(roles=roles))
def get(self): roles = Role.find(dict(name={"$nin": ['Affiliate', 'Advertiser']})) self.finish(dict(roles=roles))