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={}): '''