Skip to content
Snippets Groups Projects
Verified Commit 1e7dd30d authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix table ordering for progress columns

parent 40b2c49d
No related branches found
No related tags found
No related merge requests found
......@@ -13,20 +13,26 @@ class AbiPersonTable(tables.Table):
name = tables.LinkColumn("edit_abi_person", args=[tables.A("id")])
person = tables.Column()
profile_progress = tables.Column(accessor=tables.A("pk"), verbose_name=_("Profile progress"))
rankings_progress = tables.Column(accessor=tables.A("pk"), verbose_name=_("Rankings progress"))
profile_progress = tables.Column(
accessor=tables.A("pk"), order_by="profile_current", verbose_name=_("Profile progress")
)
rankings_progress = tables.Column(
accessor=tables.A("pk"), order_by="rankings_current", verbose_name=_("Rankings progress")
)
number_of_quotes = tables.Column(verbose_name=_("Number of submitted quotes"))
edit = tables.LinkColumn(
"edit_abi_person",
args=[tables.A("id")],
text=_("Edit"),
attrs={"a": {"class": "btn-flat waves-effect waves-orange orange-text"}},
orderable=False,
)
delete = tables.LinkColumn(
"delete_abi_person",
args=[tables.A("id")],
text=_("Delete"),
attrs={"a": {"class": "btn-flat waves-effect waves-red red-text"}},
orderable=False,
)
def render_profile_progress(self, value, record):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment