From 0ffa5dcc784b5a0480a9b9d19aea80d455df05b8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Oct 2025 16:02:40 +0000 Subject: [PATCH 1/2] Initial plan From 470074c0e403a03d79e837bc03ac936a9bd56f92 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Oct 2025 16:06:12 +0000 Subject: [PATCH 2/2] Add Django firstof tag snippet Co-authored-by: EndlessTrax <17141891+EndlessTrax@users.noreply.github.com> --- README.md | 1 + snippets/django-snippets.json | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 339fdca..f7befd2 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ ptd-url | {% url ' `*` ' `*2` %} ptd-load | {% load `*` %} ptd-stat | {% static ' `*` ' %} ptd-inc | {% include ' `*` ' %} +ptd-firstof | {% firstof `*` `*2` %} ## Release Notes diff --git a/snippets/django-snippets.json b/snippets/django-snippets.json index 4071b41..e499dd7 100644 --- a/snippets/django-snippets.json +++ b/snippets/django-snippets.json @@ -25,5 +25,12 @@ "prefix": "ptd-inc", "body": ["{% include '$1' %}$0"], "description": "Adds Include File Block" + }, + + "Django - Firstof Tags": { + "scope": "html", + "prefix": "ptd-firstof", + "body": ["{% firstof $1 $2 %}$0"], + "description": "Adds Firstof Block" } }