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 13, 2023
1 parent 4952af2 commit f08b10c
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 f08b10c

Please sign in to comment.