def _inner_save(self, dynamic=True):
        opts = self._meta
        cleaned_data = self.cleaned_data.copy()
        
        if self.dotpath:
            obj = None
            try:
                obj = self.instance.dot_notation(self.dotpath)
            except:
                pass
            if obj is None:
                obj = opts.schema()
        else:
            data = self.instance.to_primitive(self.instance, generate_natural_key=False)
            obj = opts.schema.to_python(data)
        
        for prop_name in self.serialized_fields:
            if cleaned_data.keys() in prop_name:
                value = cleaned_data.pop(prop_name)
                obj[prop_name] = value
        
        if dynamic:
            for attr_name in cleaned_data.iterkeys():
                if opts.exclude and attr_name in opts.exclude:
                    continue
                value = cleaned_data[attr_name]
                if value is not None:
                    obj[attr_name] = value
        return obj
dataset/ETHPy150Open zbyte64/django-dockit/dockit/forms/forms.py/BaseDocumentForm._inner_save/swapped operands of `in`