From 87fd8fa96f0d59854aeb23be5853a5ab721a0a65 Mon Sep 17 00:00:00 2001 From: reverend Date: Sat, 12 Sep 2020 11:01:34 +0200 Subject: [PATCH] Small fix --- lostplaces/lostplaces_app/tests/models/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lostplaces/lostplaces_app/tests/models/__init__.py b/lostplaces/lostplaces_app/tests/models/__init__.py index f822493..ca1b38b 100644 --- a/lostplaces/lostplaces_app/tests/models/__init__.py +++ b/lostplaces/lostplaces_app/tests/models/__init__.py @@ -14,7 +14,7 @@ class ModelTestCase: def setUp(self): self.object = self.model.objects.get(id=1) - self.model_name = type(self.model).__name__ + self.model_name = self.model.__name__ def _test_field(self, field_name, field_class, must_have={}, must_not_have={}): '''