From 08daaffa42821f5e0f042520717cbe9ce73fb28f Mon Sep 17 00:00:00 2001 From: Alexandr Tatarinov Date: Fri, 20 Nov 2020 21:12:46 +0200 Subject: [PATCH 1/2] Fix the type of model_objs in bulk_upsert --- manager_utils/manager_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager_utils/manager_utils.py b/manager_utils/manager_utils.py index a54aaa4..60c4738 100644 --- a/manager_utils/manager_utils.py +++ b/manager_utils/manager_utils.py @@ -132,8 +132,8 @@ def bulk_upsert( However, if update_fields is not provided, this function reduces down to performing a bulk_create on any non extant objects. - :type model_objs: list of dict - :param model_objs: A list of dictionaries that have fields corresponding to the model in the manager. + :type model_objs: list of :class:`Models` + :param model_objs: A list of models to upsert. :type unique_fields: list of str :param unique_fields: A list of fields that are used to determine if an object in objs matches a model From bac4e3dc0786f23f1b16c3685d919170a5d0ba29 Mon Sep 17 00:00:00 2001 From: Wes Okes Date: Tue, 29 Dec 2020 04:11:29 -0500 Subject: [PATCH 2/2] bump version --- docs/release_notes.rst | 4 ++++ manager_utils/version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 0f07c24..1082f0b 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -1,6 +1,10 @@ Release Notes ============= +v2.0.1 +------ +* Fixed docstring (alextatarinov) + v2.0.0 ------ * Support django 2.2, 3.0, 3.1 only diff --git a/manager_utils/version.py b/manager_utils/version.py index afced14..3f39079 100644 --- a/manager_utils/version.py +++ b/manager_utils/version.py @@ -1 +1 @@ -__version__ = '2.0.0' +__version__ = '2.0.1'