Closed flplv closed 9 years ago
Before anyone asks:
parseObject.field = None
Results:
ParseObject
Class where the field
column value is "parseObject
from the server, your object will have the field
attribute set to None
.parseObject.remove('field')
Results:
parseObject
from the server, your object will not have the field
attribute, if you try parseObject.field
it will raise an AttributeError
exception. Both ways are valid Parse and valid Python. It is user decision to have the attribute removed from the object or have None
as its value.
The parse REST API does support the
__op
Delete
to clear a field data, In this pull request I added a method similar toincrement
, namedremove
, to remove a field from the row. Also added a test to test it.It has been tested (using the tests.py) and it is working.