Skip to content

Commit

Permalink
fix: drop get_child_class() from AbstractEntity
Browse files Browse the repository at this point in the history
It is not used anywhere and it uses `get_child_entity` which was
apparently already dropped during
c60e6df

Closes: #323
  • Loading branch information
b1rger committed Oct 20, 2023
1 parent f3097ba commit e10c661
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apis_core/apis_entities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e10c661

Please sign in to comment.