Skip to content

Commit

Permalink
Merge pull request #116 from alextatarinov/patch-1
Browse files Browse the repository at this point in the history
Fix the type of model_objs in bulk_upsert
  • Loading branch information
somewes authored Dec 29, 2020
2 parents f2ae66f + 08daaff commit 718a2e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager_utils/manager_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<django:django.db.models.Model>`
: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
Expand Down

0 comments on commit 718a2e7

Please sign in to comment.