From f08b10c99fccb30a48134e02651c60125aba3fa0 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Fri, 10 Nov 2023 09:12:20 +0100 Subject: [PATCH] fix: drop object_revisions from generic entities edit view The variable is passed to the template via the context but not used anywhere and it creates problems with ontologies not using reversion. Therefore we drop the variable. --- apis_core/apis_entities/edit_generic.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apis_core/apis_entities/edit_generic.py b/apis_core/apis_entities/edit_generic.py index 7aace7ea8..a6d44edf0 100644 --- a/apis_core/apis_entities/edit_generic.py +++ b/apis_core/apis_entities/edit_generic.py @@ -103,7 +103,6 @@ def get(self, request, *args, **kwargs): apis_bibsonomy = "|".join([x.strip() for x in apis_bibsonomy]) else: apis_bibsonomy = False - object_revisions = Version.objects.get_for_object(self.instance) object_lod = Uri.objects.filter(root_object=self.instance) object_labels = Label.objects.filter(temp_entity__id=self.instance.id) tb_label = LabelTableEdit( @@ -118,7 +117,6 @@ def get(self, request, *args, **kwargs): "form": form, "instance": self.instance, "right_card": side_bar, - "object_revisions": object_revisions, "object_lod": object_lod, "apis_bibsonomy": apis_bibsonomy, }