diff options
| author | Zbigniew Siciarz <antyqjon@gmail.com> | 2014-02-16 13:23:16 +0100 |
|---|---|---|
| committer | Zbigniew Siciarz <antyqjon@gmail.com> | 2014-02-16 13:25:21 +0100 |
| commit | 74d4d58b62f3a68bf77b983bc8a475a130d1f95e (patch) | |
| tree | 322cc608f0ea02dc85bc3b19a71f417fb0d3b8df /django | |
| parent | 653527de40115ddab04a7dcc69134ee4be45fa01 (diff) | |
Fixed #21939 -- Deprecated loading ssi/url tags from future.
Diffstat (limited to 'django')
| -rw-r--r-- | django/templatetags/future.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/django/templatetags/future.py b/django/templatetags/future.py index 7203f394bf..c8127ac102 100644 --- a/django/templatetags/future.py +++ b/django/templatetags/future.py @@ -1,3 +1,5 @@ +import warnings + from django.template import Library from django.template import defaulttags @@ -6,13 +8,19 @@ register = Library() @register.tag def ssi(parser, token): - # Used for deprecation path during 1.3/1.4, will be removed in 2.0 + warnings.warn( + "Loading the `ssi` tag from the `future` library is deprecated and " + "will be removed in Django 1.9. Use the default `ssi` tag instead.", + PendingDeprecationWarning) return defaulttags.ssi(parser, token) @register.tag def url(parser, token): - # Used for deprecation path during 1.3/1.4, will be removed in 2.0 + warnings.warn( + "Loading the `url` tag from the `future` library is deprecated and " + "will be removed in Django 1.9. Use the default `url` tag instead.", + PendingDeprecationWarning) return defaulttags.url(parser, token) |
