From 08daaffa42821f5e0f042520717cbe9ce73fb28f Mon Sep 17 00:00:00 2001 From: Alexandr Tatarinov Date: Fri, 20 Nov 2020 21:12:46 +0200 Subject: [PATCH] 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