Skip to content

Commit

Permalink
Okay, trying again
Browse files Browse the repository at this point in the history
to fix tag_kwargs issue
  • Loading branch information
matthewdylan committed May 1, 2024
1 parent 0cf7cb9 commit 834ade3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions taggit/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,13 @@ def set(self, tags, *, through_defaults=None, **kwargs):
self.add(*new_objs, through_defaults=through_defaults, **kwargs)

@require_instance_manager
def remove(self, *tags):
def remove(self, *tags, tag_kwargs=None):
if not tags:
return
tag_objs = self._to_tag_model_instances(tags)
if tag_kwargs is None:
tag_kwargs = {}

tag_objs = self._to_tag_model_instances(tags, tag_kwargs)

self._remove_prefetched_objects()
db = router.db_for_write(self.through, instance=self.instance)
Expand Down

0 comments on commit 834ade3

Please sign in to comment.