Skip to content

Commit

Permalink
refactor(apis_relations): use get_listview_url for linkifying column
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Sep 26, 2024
1 parent 2eb364d commit 3c0136d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apis_core/apis_relations/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ def __init__(self, *args, **kwargs):
kwargs["orderable"] = True
kwargs["filter"] = lambda qs: qs.order_by("model")
kwargs["transform"] = lambda ent: f"{ent.name.capitalize()}"
kwargs["linkify_item"] = {
"viewname": "apis_core:apis_entities:generic_entities_list",
"args": [tables.A("model")],
}
kwargs["linkify_item"] = lambda record: record.model_class().get_listview_url()
super().__init__(*args, **kwargs)


Expand Down

0 comments on commit 3c0136d

Please sign in to comment.