Skip to content

Commit

Permalink
Added ref to render_context fix to django-stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
smithdc1 committed Jul 6, 2022
1 parent dffce32 commit 40cb9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crispy_forms/templatetags/crispy_forms_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_render(self, context: Context) -> Context:
template.Variable(self.form),
template.Variable(self.helper) if self.helper else None,
)
# TODO render_context types need updating in django-stubs.
# https://github.com/typeddjango/django-stubs/pull/1040
form, helper = context.render_context[self] # type: ignore [index]

actual_form = form.resolve(context)
Expand Down

0 comments on commit 40cb9ff

Please sign in to comment.