Skip to content

Commit

Permalink
fix reference to generic model manager
Browse files Browse the repository at this point in the history
  • Loading branch information
djbrown authored Sep 10, 2023
1 parent 03603ca commit d112d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def assert_objects(self, model: Type[Model], count=1, filters=None) -> Model | Q
if filters is None:
filters = {}

objects = model.objects.filter(**filters)
objects = model._default_manager.filter(**filters) # pylint: disable=protected-access
self.assertEqual(len(objects), count)
return objects[0] if count == 1 else objects

Expand Down

0 comments on commit d112d22

Please sign in to comment.