diff --git a/arches/management/commands/whatisthis.py b/arches/management/commands/whatisthis.py index 4ab73a1e8c6..d2d9c4156a4 100644 --- a/arches/management/commands/whatisthis.py +++ b/arches/management/commands/whatisthis.py @@ -29,6 +29,8 @@ def find_uuid(self, in_uuid): ## search all models and see if the UUID matches an existing object objs = [] for m in django.apps.apps.get_models(): + if m._meta.proxy: + continue if not m.__module__.startswith("arches"): continue if m._meta.pk.get_internal_type() != "UUIDField": diff --git a/tests/commands/test_whatisthis.py b/tests/commands/test_whatisthis.py index da4455930a6..52bebad60d3 100644 --- a/tests/commands/test_whatisthis.py +++ b/tests/commands/test_whatisthis.py @@ -17,8 +17,7 @@ def test_match(self): g = Graph.new() out = StringIO() call_command("whatisthis", str(g.pk), stdout=out) - # Produces hits on graph and node - self.assertIn("This UUID is the primary key for 2 objects:", out.getvalue()) + self.assertIn("This UUID is the primary key for 1 object:", out.getvalue()) def test_no_match(self): out = StringIO()