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

https://code.djangoproject.com/ticket/22933