diff --git a/apis_core/apis_entities/models.py b/apis_core/apis_entities/models.py index 8b9d7e468..ab0eb338b 100644 --- a/apis_core/apis_entities/models.py +++ b/apis_core/apis_entities/models.py @@ -189,7 +189,6 @@ def merge_with(self, entities): # TODO: check if these imports can be put to top of module without # causing circular import issues. - from apis_core.apis_vocabularies.models import LabelType from apis_core.apis_metainfo.models import Uri e_a = type(self).__name__ @@ -206,7 +205,6 @@ def merge_with(self, entities): e_b = type(ent).__name__ if e_a != e_b: continue - lt, created = LabelType.objects.get_or_create(name="Legacy name (merge)") # TODO: if collections are removed, remove this as well if hasattr(ent, "collection"): col_list = list(self.collection.all()) diff --git a/apis_core/apis_vocabularies/models.py b/apis_core/apis_vocabularies/models.py index 726ac52c0..ea84552cd 100644 --- a/apis_core/apis_vocabularies/models.py +++ b/apis_core/apis_vocabularies/models.py @@ -130,13 +130,6 @@ def __str__(self): # """Holds controlled vocabularies about event-types""" # pass -# TODO RDF: Remove this -@reversion.register(follow=["vocabsbaseclass_ptr"]) -class LabelType(VocabsBaseClass): - """Holds controlled vocabularies about label-types""" - - pass - # TODO RDF: Remove this @reversion.register(follow=["vocabsbaseclass_ptr"]) diff --git a/apis_core/apis_vocabularies/serializers.py b/apis_core/apis_vocabularies/serializers.py index 5955c0e9e..f84085cfb 100644 --- a/apis_core/apis_vocabularies/serializers.py +++ b/apis_core/apis_vocabularies/serializers.py @@ -7,7 +7,6 @@ CollectionType, VocabsBaseClass, VocabNames, - LabelType, ) @@ -184,7 +183,3 @@ class Meta: # model = WorkType # # -class LabelTypeSerializer(serializers.ModelSerializer): - class Meta: - fields = ("id", "name") - model = LabelType diff --git a/apis_core/utils/test_caching.py b/apis_core/utils/test_caching.py index 54b3fa5c5..06d1401da 100644 --- a/apis_core/utils/test_caching.py +++ b/apis_core/utils/test_caching.py @@ -10,7 +10,6 @@ ], "apis_vocabularies": [ "CollectionType", - "LabelType", "TextType", "VocabNames", "VocabsBaseClass",