@classmethod
def inplace_update(cls, fields, query=None, doc_ids=None):
    """Directly update objects matching the query with given fields"""
    return cls.table.update(fields, query, doc_ids=doc_ids)
