#25466: django.template.loader.LoaderOrigin was removed without proper
deprecation
---------------------------------+------------------------------------
Reporter: tarkatronic | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.9a1
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Old description:
> https://code.djangoproject.com/ticket/15053 caused the removal of
> django.template.loader.LoadOrigin (and django.template.StringOrigin), in
> favor of django.template.base.Origin, for Django 1.9.
>
> These APIs were new and documented as of Django 1.7:
> https://docs.djangoproject.com/en/1.7/ref/templates/api/#template-origin
>
> Even in the 1.8 branch, there is no DeprecationWarning for this class:
> https://github.com/django/django/blob/stable/1.8.x/django/template/loader.py#L14
New description:
#15053 caused the removal of `django.template.loader.LoadOrigin` (and
`django.template.StringOrigin`), in favor of
`django.template.base.Origin`, for Django 1.9.
These APIs were new and documented as of Django 1.7:
https://docs.djangoproject.com/en/1.7/ref/templates/api/#template-origin
Even in the 1.8 branch, there is no DeprecationWarning for this class:
https://github.com/django/django/blob/stable/1.8.x/django/template/loader.py#L14
--
Comment (by timgraham):
May I ask about the use case so we can be sure to solve the issue
appropriately? Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/25466#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.dfbef1632fe60ee0e32a311106dc6da7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.