Fixed #22933 -- Deprecated django.template.resolve_variable().