diff --git a/bread/views/browse.py b/bread/views/browse.py index c3dfd9b0..dc457a73 100644 --- a/bread/views/browse.py +++ b/bread/views/browse.py @@ -264,7 +264,7 @@ def get_queryset(self): return qs @staticmethod - def gen_rowclickaction(modelaction): + def gen_rowclickaction(modelaction, **kwargs): """ Shortcut to get a Link to a model view. The default models views in bread are "read", "edit", "delete". @@ -273,9 +273,7 @@ def gen_rowclickaction(modelaction): return Link( label="", href=ModelHref( - hg.C("row"), - modelaction, - kwargs={"pk": hg.C("row.pk")}, + hg.C("row"), modelaction, kwargs={"pk": hg.C("row.pk")}, **kwargs ), iconname=None, )