diff --git a/infogami/infobase/dbstore.py b/infogami/infobase/dbstore.py index ba871bc1..65561d8c 100644 --- a/infogami/infobase/dbstore.py +++ b/infogami/infobase/dbstore.py @@ -158,7 +158,7 @@ def process(query): def save_many(self, docs, timestamp, comment, data, ip, author, action=None): docs = list(docs) - action = action or "bulk_update" + action = action or "default-bulk-update" logger.debug( "saving %d docs - %s", len(docs), @@ -210,7 +210,7 @@ def save( logger.debug("saving %s", key) timestamp = timestamp or datetime.datetime.utcnow return self.save_many( - [doc], timestamp, comment, data, ip, author, action=action or "update" + [doc], timestamp, comment, data, ip, author, action=action or "default-update" ) def reindex(self, keys): diff --git a/infogami/infobase/tests/test_client.py b/infogami/infobase/tests/test_client.py index ac8354e0..f8d9e16c 100644 --- a/infogami/infobase/tests/test_client.py +++ b/infogami/infobase/tests/test_client.py @@ -34,7 +34,7 @@ def test_all(self, wildcard): assert changes == [ { "id": wildcard, - "kind": "update", + "kind": "default-update", "author": None, "ip": wildcard, "timestamp": wildcard, @@ -46,7 +46,7 @@ def test_all(self, wildcard): assert site.get_change(changes[0]["id"]).dict() == { "id": wildcard, - "kind": "update", + "kind": "default-update", "author": None, "ip": wildcard, "timestamp": wildcard,