Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only import url from future when using Django < 1.5.
In order to hide the deprecation warnings, determine what version django is being used, then either import the url template tag from future or import the normal url template tag. When support for Django 1.4 drops, this change can be removed. Fixes #706.
- Loading branch information
1 parent
30e56bf
commit 5a9bd46
Showing
6 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from django.template.base import Library | ||
|
||
from ..compat import url as url_compat | ||
|
||
register = Library() | ||
|
||
|
||
@register.tag | ||
def url(parser, token): | ||
return url_compat(parser, token) |