def set_active(self):
        if not self.active:
            storage_keys = set(self.remotestorage_set.values_list('profile', flat=True))
            profile_keys = set(self.profiles.values_list('pk', flat=True))
            if storage_keys == profile_keys:
                self.active = True
                self.save()
Check long comes back out as a long
dataset/ETHPy150Open jbittel/django-multimedia/multimedia/models.py/Media.set_active--crossover with--dataset/ETHPy150Open telegraphic/hickle/tests/test_hickle.py/test_list_long_type