@classmethod
def update(cls, oid=None, **kwargs):
    """
            Add or edit depending on presence if 'id' field from oid or kwargs
        """
    oid = oid or kwargs.pop('id', None)
    if oid:
        return cls.edit(oid, **kwargs)
    return cls.add(**kwargs)
