We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 131cf69 commit 3b93a2cCopy full SHA for 3b93a2c
allauth/templatetags/allauth.py
@@ -111,16 +111,14 @@ def render(self, context):
111
tags = attrs.get("tags")
112
if tags:
113
attrs["tags"] = [tag.strip() for tag in tags.split(",")]
114
- return render_to_string(
115
- template_names,
116
- {
117
- "attrs": attrs,
118
- "slots": slots,
119
- "origin": self.origin.template_name.replace(
120
- f".{TEMPLATE_EXTENSION}", ""
121
- ),
122
- },
123
- )
+ with context.push(
+ slots=slots,
+ attrs=attrs,
+ origin=self.origin.template_name.replace(f".{TEMPLATE_EXTENSION}", ""),
+ ) as element_context:
+ return render_to_string(
+ template_names, element_context.context.flatten()
+ )
124
125
126
@register.tag(name="setvar")
0 commit comments