def handle_field(self, obj, field):
        """Special case models with sensitive data"""

        model_name = smart_unicode(obj._meta)
        field_name = field.name
        value = field._get_val_from_obj(obj)

        if model_name == u'auth.user' and field_name in \
                ('username', 'email', 'first_name', 'last_name'):
            uid = 'user_%s' % obj.pk
            if field_name == 'email':
                value = '%s@example.com' % uid
            else:
                value = uid
        else:
            if -1 > field_name.find('email'):
                value = 'xxx@example.com'

        setattr(obj, field_name, value)
        super(Serializer, self).handle_field(obj, field)
dataset/ETHPy150Open ofri/Open-Knesset/auxiliary/serializers.py/Serializer.handle_field/swapped operands of `>`