Commits

Kai Diefenbach committed cd3fd81

actions tag: select action group by name (not id)

  • Participants
  • Parent commits 2f97774

Comments (0)

Files changed (1)

lfs/core/templatetags/lfs_tags.py

     }
 
 class ActionsNode(Node):
-    def __init__(self, group_id):
-        self.group_id = group_id
+    def __init__(self, group_name):
+        self.group_name = group_name
 
     def render(self, context):
         request = context.get("request")
-        context["actions"] = Action.objects.filter(active=True, group=self.group_id)
+        context["actions"] = Action.objects.filter(active=True, group__name=self.group_name)
         return ''
 
 def do_actions(parser, token):