Skip to content

Commit

Permalink
refactor(apis_entities): drop unused AbstractEntity methods
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Dec 9, 2024
1 parent f604816 commit e8f8601
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions apis_core/apis_entities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ class AbstractEntity(RootObject):
class Meta:
abstract = True

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

@classmethod
def get_or_create_uri(cls, uri):
uri = str(uri)
Expand Down Expand Up @@ -87,11 +84,6 @@ def merge_start_date_written(self, other):
def merge_end_date_written(self, other):
self.end_date_written = self.end_date_written or other.end_date_written

def get_serialization(self):
from apis_core.apis_entities.serializers_generic import EntitySerializer

return EntitySerializer(self).data


@receiver(post_save, dispatch_uid="create_default_uri")
def create_default_uri(sender, instance, created, raw, using, update_fields, **kwargs):
Expand Down

0 comments on commit e8f8601

Please sign in to comment.