remove renaming

This commit is contained in:
Josh Thomas 2025-01-04 15:49:57 -06:00
parent f391e0de9c
commit 7bb9904f81
2 changed files with 3 additions and 4 deletions

View file

@ -10,7 +10,6 @@ pub struct TagSpec {
#[serde(rename = "type")]
pub tag_type: TagType,
pub closing: Option<String>,
#[serde(rename = "intermediates")]
pub branches: Option<Vec<BranchSpec>>,
pub args: Option<Vec<ArgSpec>>,
}

View file

@ -4,11 +4,11 @@ closing = "endif"
# We keep the intermediates field name in TOML since we're using serde rename
# to map it to branches in the Rust code
[[django.template.defaulttags.if.intermediates]]
[[django.template.defaulttags.if.branches]]
name = "elif"
args = true
[[django.template.defaulttags.if.intermediates]]
[[django.template.defaulttags.if.branches]]
name = "else"
args = false
@ -22,7 +22,7 @@ closing = "endfor"
# We keep the intermediates field name in TOML since we're using serde rename
# to map it to branches in the Rust code
[[django.template.defaulttags.for.intermediates]]
[[django.template.defaulttags.for.branches]]
name = "empty"
args = false