Skip to content

Commit 2172d5a

Browse files
Apply suggestions from code review
Co-authored-by: Blake Owens <76979297+blakeaowens@users.noreply.github.com>
1 parent af0d560 commit 2172d5a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dojo/test/signals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_post_delete(sender, instance, using, origin, **kwargs):
2727
).order_by("-id").first():
2828
description = _('The test "%(name)s" was deleted by %(user)s') % {
2929
"name": str(instance), "user": le.actor}
30-
create_notification(event="test_deleted", # template does not exists, it will default to "other" but this event name needs to stay because of unit testing
30+
create_notification(event="test_deleted", # Template does not exist, it will default to "other" but this event name needs to stay because of unit testing
3131
title=_("Deletion of %(name)s") % {"name": str(instance)},
3232
description=description,
3333
product=instance.engagement.product,

dojo/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2367,7 +2367,7 @@ def crawl(self, obj, model_list, **kwargs):
23672367
model = model_info[0]
23682368
model_query = model_info[1]
23692369
filter_dict = {model_query: obj}
2370-
# Oly fetch the IDs since we will make a list of IDs in the following function call
2370+
# Only fetch the IDs since we will make a list of IDs in the following function call
23712371
objects_to_delete = model.objects.only("id").filter(**filter_dict)
23722372
logger.debug("ASYNC_DELETE: Deleting " + str(len(objects_to_delete)) + " " + self.get_object_name(model) + "s in chunks")
23732373
chunks = self.chunk_list(model, objects_to_delete)

0 commit comments

Comments
 (0)