Skip to content
Commit 8202ce45 authored by Chris Cogdon's avatar Chris Cogdon Committed by Tim Graham
Browse files

[1.9.x] Fixed #26018 -- Prevented unecessary get_form() call in FormMixin.get_context_data().

Changed "dict.setdefault" to "if x in dict" pattern so that get_form() would not
be called unnecessarily, specifically in the case where FormMixin.form_invalid()
calls get_context_data() with the current form.

Backport of e429c518 from master
parent 4d9b9861
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment