Skip to content

Commit

Permalink
fix: workaround for entities not inheriting from TempEntityClass
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Oct 4, 2023
1 parent 8a90be2 commit 661016e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis_core/apis_entities/detail_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get(self, request, *args, **kwargs):

# TODO RDF : Check / Adapt the following code to rdf architecture
object_lod = Uri.objects.filter(root_object=self.instance)
object_labels = Label.objects.filter(temp_entity=self.instance)
object_labels = Label.objects.filter(temp_entity__id=self.instance.id)
tb_label = LabelTableBase(data=object_labels, prefix=entity.title()[:2] + "L-")
tb_label_open = request.GET.get("PL-page", None)
side_bar.append(("Label", tb_label, "PersonLabel", tb_label_open))
Expand Down
2 changes: 1 addition & 1 deletion apis_core/apis_entities/edit_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get(self, request, *args, **kwargs):
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=self.instance)
object_labels = Label.objects.filter(temp_entity__id=self.instance.id)
tb_label = LabelTableEdit(
data=object_labels, prefix=self.entity.title()[:2] + "L-"
)
Expand Down

0 comments on commit 661016e

Please sign in to comment.