From e10c661ed0bff8e996d9ad2e850aafb909923de3 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Thu, 19 Oct 2023 13:04:44 +0200 Subject: [PATCH] fix: drop `get_child_class()` from AbstractEntity It is not used anywhere and it uses `get_child_entity` which was apparently already dropped during c60e6df4d53918dea6ed2be5b2d2225eb8fde894 Closes: #323 --- apis_core/apis_entities/models.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apis_core/apis_entities/models.py b/apis_core/apis_entities/models.py index 016217e10..ae230f31b 100644 --- a/apis_core/apis_entities/models.py +++ b/apis_core/apis_entities/models.py @@ -88,13 +88,6 @@ def get_edit_url(self): kwargs={"entity": entity, "pk": self.id}, ) - def get_child_class(self): - child = self.get_child_entity() - if child: - return "{}".format(child.__class__.__name__) - else: - return "{}".format(child.__class__.__name__) - def get_absolute_url(self): entity = self.__class__.__name__.lower() return reverse(