Skip to content

Commit c6ba808

Browse files
remove double registration of var tags (#175)
1 parent ef5baa2 commit c6ba808

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1818

1919
## [Unreleased]
2020

21+
### Fixed
22+
23+
- **Internal**: Removed the double registration of the `{% bird:var %}` and `{% endbird:var %}` tags.
24+
2125
## [0.14.0]
2226

2327
🚨 This release contains some breaking changes. See the Removed section for more information. 🚨

src/django_bird/templatetags/tags/var.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
OPERATOR_PATTERN = re.compile(r"(\w+)\s*(\+=|=)\s*(.+)")
2020

2121

22-
@register.tag(name=TAG)
2322
def do_var(parser: Parser, token: Token):
2423
_tag, *bits = token.split_contents()
2524
if not bits:
@@ -42,7 +41,6 @@ def do_var(parser: Parser, token: Token):
4241
return VarNode(var_name, operator, value)
4342

4443

45-
@register.tag(name=END_TAG)
4644
def do_end_var(_parser: Parser, token: Token):
4745
_tag, *bits = token.split_contents()
4846
if not bits:

0 commit comments

Comments
 (0)