Skip to content

Commit

Permalink
fix: drop object_revisions from generic entities edit view
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
b1rger committed Nov 10, 2023
1 parent 190e5f3 commit 140ee01
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apis_core/apis_entities/edit_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
}
Expand Down

0 comments on commit 140ee01

Please sign in to comment.