File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed
webstack_django_sorting/templatetags Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ The project provides examples of integration with Django and Jinja2 templates.
112112
113113 ```python
114114 from jinja2.environment import Environment
115- from webstack_django_sorting.jinja2_globals import sorting_anchor, sort_queryset
115+ from webstack_django_sorting.templatetags. jinja2_globals import sorting_anchor, sort_queryset
116116
117117 class JinjaEnvironment(Environment):
118118 def __init__ (self , ** kwargs):
Original file line number Diff line number Diff line change 1+ """
2+ Common to Django tags (sorting_tags) and Jinja2 globals (jinja2_globals)
3+ """
14from urllib .parse import urlencode
25from operator import attrgetter
36
Original file line number Diff line number Diff line change 11from jinja2 import Markup
22
3- from .settings import SORT_DIRECTIONS
43from . import common
54
65
File renamed without changes.
Original file line number Diff line number Diff line change 22from django .http import Http404
33from django .utils .translation import ugettext_lazy as _
44
5- from .. settings import INVALID_FIELD_RAISES_404
6- from .. import common
5+ from .settings import INVALID_FIELD_RAISES_404
6+ from . import common
77
88register = template .Library ()
99
You can’t perform that action at this time.
0 commit comments